New upstream version 8.1.0
This commit is contained in:
25
meta/source/toolkit/BuddyCommTk.h
Normal file
25
meta/source/toolkit/BuddyCommTk.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <common/storage/StorageErrors.h>
|
||||
#include <common/nodes/NumNodeID.h>
|
||||
|
||||
class MirrorBuddyGroupMapper;
|
||||
class TimerQueue;
|
||||
|
||||
/**
|
||||
* This contains all the functions regarding the communication with the mirror buddy.
|
||||
* In the storage server, these mostly live in the StorageTargets class, but because the metadata
|
||||
* server only has a single metadata target at the moment, we group them here.
|
||||
*/
|
||||
namespace BuddyCommTk
|
||||
{
|
||||
void prepareBuddyNeedsResyncState(Node& mgmtNode, const MirrorBuddyGroupMapper& bgm,
|
||||
TimerQueue& timerQ, NumNodeID localNodeID);
|
||||
|
||||
void checkBuddyNeedsResync();
|
||||
void setBuddyNeedsResync(const std::string& path, bool needsResync);
|
||||
bool getBuddyNeedsResync();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user