mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 09:58:50 +08:00
Remove headed added by IDE, add comments
This commit is contained in:
parent
70e4b88a04
commit
e097c98956
@ -24,7 +24,6 @@
|
||||
#include "flow/FastRef.h"
|
||||
#include "fdbclient/StorageServerInterface.h"
|
||||
#include "flow/genericactors.actor.h"
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
#pragma once
|
||||
|
||||
@ -206,9 +205,8 @@ public:
|
||||
Future<Void> switchConnectionFile(Reference<ClusterConnectionFile> standby);
|
||||
Future<Void> connectionFileChanged();
|
||||
bool switchable = false;
|
||||
|
||||
// Management API
|
||||
// Attempt to kill or suspend a process, return 1 if successful
|
||||
|
||||
// Management API, Attempt to kill or suspend a process, return 1 for success, 0 for failure
|
||||
Future<int64_t> rebootWorker(StringRef address, bool check = false, int duration = 0);
|
||||
|
||||
//private:
|
||||
|
@ -85,6 +85,7 @@ public:
|
||||
virtual void addref() = 0;
|
||||
virtual void delref() = 0;
|
||||
|
||||
// Management API, Attempt to kill or suspend a process, return 1 for success, 0 for failure
|
||||
virtual ThreadFuture<int64_t> rebootWorker(const StringRef& address, bool check, int duration) = 0;
|
||||
};
|
||||
|
||||
|
@ -29,7 +29,6 @@
|
||||
#include "flow/UnitTest.h"
|
||||
|
||||
#include "flow/actorcompiler.h" // This must be the last #include.
|
||||
#include <cstdint>
|
||||
|
||||
void throwIfError(FdbCApi::fdb_error_t e) {
|
||||
if(e) {
|
||||
|
@ -20,7 +20,6 @@
|
||||
|
||||
#ifndef FDBCLIENT_MULTIVERSIONTRANSACTION_H
|
||||
#define FDBCLIENT_MULTIVERSIONTRANSACTION_H
|
||||
#include <cstdint>
|
||||
#pragma once
|
||||
|
||||
#include "fdbclient/FDBOptions.g.h"
|
||||
|
@ -21,7 +21,6 @@
|
||||
#include "fdbclient/NativeAPI.actor.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdint>
|
||||
#include <iterator>
|
||||
#include <regex>
|
||||
#include <unordered_set>
|
||||
|
@ -23,7 +23,6 @@
|
||||
#include "fdbclient/DatabaseContext.h"
|
||||
#include "fdbclient/versions.h"
|
||||
#include "fdbclient/NativeAPI.actor.h"
|
||||
#include <cstdint>
|
||||
|
||||
// Users of ThreadSafeTransaction might share Reference<ThreadSafe...> between different threads as long as they don't call addRef (e.g. C API follows this).
|
||||
// Therefore, it is unsafe to call (explicitly or implicitly) this->addRef in any of these functions.
|
||||
|
Loading…
x
Reference in New Issue
Block a user