28 lines
597 B
C++
28 lines
597 B
C++
#pragma once
|
|
|
|
#include <common/storage/EntryInfo.h>
|
|
#include <common/storage/StorageErrors.h>
|
|
#include <common/Common.h>
|
|
#include <session/SessionFileStore.h>
|
|
|
|
|
|
/**
|
|
* Common helpers for locking related messages.
|
|
*/
|
|
class MsgHelperLocking
|
|
{
|
|
public:
|
|
static FhgfsOpsErr trySesssionRecovery(EntryInfo* entryInfo, NumNodeID clientID,
|
|
unsigned ownerFD, SessionFileStore* sessionFiles, SessionFile** outSessionFile);
|
|
|
|
static FhgfsOpsErr flockAppend(EntryInfo* entryInfo, unsigned ownerFD,
|
|
EntryLockDetails& lockDetails);
|
|
|
|
|
|
private:
|
|
MsgHelperLocking() {}
|
|
|
|
};
|
|
|
|
|