Remove headed added by IDE, add comments

This commit is contained in:
Chaoguang Lin 2021-01-04 00:18:01 -08:00
parent 70e4b88a04
commit e097c98956
6 changed files with 3 additions and 8 deletions

View File

@ -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:

View File

@ -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;
};

View File

@ -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) {

View File

@ -20,7 +20,6 @@
#ifndef FDBCLIENT_MULTIVERSIONTRANSACTION_H
#define FDBCLIENT_MULTIVERSIONTRANSACTION_H
#include <cstdint>
#pragma once
#include "fdbclient/FDBOptions.g.h"

View File

@ -21,7 +21,6 @@
#include "fdbclient/NativeAPI.actor.h"
#include <algorithm>
#include <cstdint>
#include <iterator>
#include <regex>
#include <unordered_set>

View File

@ -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.