mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 01:42:37 +08:00
Resolve the simple-looking conflicts
This commit is contained in:
parent
ff7d306b09
commit
b0f61fb74f
@ -18,11 +18,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
cmake_minimum_required(VERSION 3.13)
|
cmake_minimum_required(VERSION 3.13)
|
||||||
project(foundationdb
|
project(foundationdb
|
||||||
<<<<<<< HEAD
|
|
||||||
VERSION 7.0.0
|
VERSION 7.0.0
|
||||||
=======
|
|
||||||
VERSION 6.3.11
|
|
||||||
>>>>>>> release-6.3
|
|
||||||
DESCRIPTION "FoundationDB is a scalable, fault-tolerant, ordered key-value store with full ACID transactions."
|
DESCRIPTION "FoundationDB is a scalable, fault-tolerant, ordered key-value store with full ACID transactions."
|
||||||
HOMEPAGE_URL "http://www.foundationdb.org/"
|
HOMEPAGE_URL "http://www.foundationdb.org/"
|
||||||
LANGUAGES C CXX ASM)
|
LANGUAGES C CXX ASM)
|
||||||
|
@ -40,11 +40,7 @@ Future<Version> timeKeeperVersionFromDatetime(std::string const &datetime, Datab
|
|||||||
// TODO: Move the log file and range file format encoding/decoding stuff to this file and behind interfaces.
|
// TODO: Move the log file and range file format encoding/decoding stuff to this file and behind interfaces.
|
||||||
class IBackupFile {
|
class IBackupFile {
|
||||||
public:
|
public:
|
||||||
<<<<<<< HEAD
|
IBackupFile(const std::string& fileName) : m_fileName(fileName) {}
|
||||||
IBackupFile(const std::string& fileName) : m_fileName(fileName), m_offset(0) {}
|
|
||||||
=======
|
|
||||||
IBackupFile(std::string fileName) : m_fileName(fileName) {}
|
|
||||||
>>>>>>> release-6.3
|
|
||||||
virtual ~IBackupFile() {}
|
virtual ~IBackupFile() {}
|
||||||
// Backup files are append-only and cannot have more than 1 append outstanding at once.
|
// Backup files are append-only and cannot have more than 1 append outstanding at once.
|
||||||
virtual Future<Void> append(const void *data, int len) = 0;
|
virtual Future<Void> append(const void *data, int len) = 0;
|
||||||
|
@ -127,6 +127,7 @@ public:
|
|||||||
|
|
||||||
class BackupFile final : public IBackupFile, ReferenceCounted<BackupFile> {
|
class BackupFile final : public IBackupFile, ReferenceCounted<BackupFile> {
|
||||||
Reference<IAsyncFile> m_file;
|
Reference<IAsyncFile> m_file;
|
||||||
|
int64_t m_offset;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BackupFile(const std::string& fileName, Reference<IAsyncFile> file) : IBackupFile(fileName), m_file(file) {}
|
BackupFile(const std::string& fileName, Reference<IAsyncFile> file) : IBackupFile(fileName), m_file(file) {}
|
||||||
@ -142,6 +143,7 @@ public:
|
|||||||
return Void();
|
return Void();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
int64_t size() const override { return m_offset; }
|
||||||
void addref() override { ReferenceCounted<BackupFile>::addref(); }
|
void addref() override { ReferenceCounted<BackupFile>::addref(); }
|
||||||
void delref() override { ReferenceCounted<BackupFile>::delref(); }
|
void delref() override { ReferenceCounted<BackupFile>::delref(); }
|
||||||
};
|
};
|
||||||
|
@ -50,12 +50,15 @@ public:
|
|||||||
|
|
||||||
Future<Void> finish() { return finish_impl(Reference<BackupFile>::addRef(this)); }
|
Future<Void> finish() { return finish_impl(Reference<BackupFile>::addRef(this)); }
|
||||||
|
|
||||||
|
int64_t size() const override { return m_offset; }
|
||||||
|
|
||||||
void addref() override { return ReferenceCounted<BackupFile>::addref(); }
|
void addref() override { return ReferenceCounted<BackupFile>::addref(); }
|
||||||
void delref() override { return ReferenceCounted<BackupFile>::delref(); }
|
void delref() override { return ReferenceCounted<BackupFile>::delref(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Reference<IAsyncFile> m_file;
|
Reference<IAsyncFile> m_file;
|
||||||
std::string m_finalFullPath;
|
std::string m_finalFullPath;
|
||||||
|
int64_t m_offset;
|
||||||
};
|
};
|
||||||
|
|
||||||
ACTOR static Future<BackupContainerFileSystem::FilesAndSizesT> listFiles_impl(std::string path, std::string m_path) {
|
ACTOR static Future<BackupContainerFileSystem::FilesAndSizesT> listFiles_impl(std::string path, std::string m_path) {
|
||||||
|
@ -61,11 +61,14 @@ public:
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int64_t size() const override { return m_offset; }
|
||||||
|
|
||||||
void addref() final { return ReferenceCounted<BackupFile>::addref(); }
|
void addref() final { return ReferenceCounted<BackupFile>::addref(); }
|
||||||
void delref() final { return ReferenceCounted<BackupFile>::delref(); }
|
void delref() final { return ReferenceCounted<BackupFile>::delref(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Reference<IAsyncFile> m_file;
|
Reference<IAsyncFile> m_file;
|
||||||
|
int64_t m_offset;
|
||||||
};
|
};
|
||||||
|
|
||||||
ACTOR static Future<BackupContainerFileSystem::FilesAndSizesT> listFiles(
|
ACTOR static Future<BackupContainerFileSystem::FilesAndSizesT> listFiles(
|
||||||
|
@ -223,7 +223,6 @@ struct DatabaseConfiguration {
|
|||||||
bool isExcludedServer(NetworkAddressList) const;
|
bool isExcludedServer(NetworkAddressList) const;
|
||||||
std::set<AddressExclusion> getExcludedServers() const;
|
std::set<AddressExclusion> getExcludedServers() const;
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
int32_t getDesiredCommitProxies() const {
|
int32_t getDesiredCommitProxies() const {
|
||||||
if (commitProxyCount == -1) return autoCommitProxyCount;
|
if (commitProxyCount == -1) return autoCommitProxyCount;
|
||||||
return commitProxyCount;
|
return commitProxyCount;
|
||||||
@ -232,15 +231,6 @@ struct DatabaseConfiguration {
|
|||||||
if (grvProxyCount == -1) return autoGrvProxyCount;
|
if (grvProxyCount == -1) return autoGrvProxyCount;
|
||||||
return grvProxyCount;
|
return grvProxyCount;
|
||||||
}
|
}
|
||||||
int32_t getDesiredResolvers() const { if(resolverCount == -1) return autoResolverCount; return resolverCount; }
|
|
||||||
int32_t getDesiredLogs() const { if(desiredTLogCount == -1) return autoDesiredTLogCount; return desiredTLogCount; }
|
|
||||||
int32_t getDesiredRemoteLogs() const { if(remoteDesiredTLogCount == -1) return getDesiredLogs(); return remoteDesiredTLogCount; }
|
|
||||||
int32_t getDesiredSatelliteLogs( Optional<Key> dcId ) const {
|
|
||||||
=======
|
|
||||||
int32_t getDesiredProxies() const {
|
|
||||||
if (masterProxyCount == -1) return autoMasterProxyCount;
|
|
||||||
return masterProxyCount;
|
|
||||||
}
|
|
||||||
int32_t getDesiredResolvers() const {
|
int32_t getDesiredResolvers() const {
|
||||||
if (resolverCount == -1) return autoResolverCount;
|
if (resolverCount == -1) return autoResolverCount;
|
||||||
return resolverCount;
|
return resolverCount;
|
||||||
@ -254,8 +244,6 @@ struct DatabaseConfiguration {
|
|||||||
return remoteDesiredTLogCount;
|
return remoteDesiredTLogCount;
|
||||||
}
|
}
|
||||||
int32_t getDesiredSatelliteLogs(Optional<Key> dcId) const {
|
int32_t getDesiredSatelliteLogs(Optional<Key> dcId) const {
|
||||||
|
|
||||||
>>>>>>> release-6.3
|
|
||||||
auto desired = getRegion(dcId).satelliteDesiredTLogCount;
|
auto desired = getRegion(dcId).satelliteDesiredTLogCount;
|
||||||
if (desired == -1) return autoDesiredTLogCount;
|
if (desired == -1) return autoDesiredTLogCount;
|
||||||
return desired;
|
return desired;
|
||||||
|
@ -846,11 +846,7 @@ DatabaseContext::DatabaseContext(Reference<AsyncVar<Reference<ClusterConnectionF
|
|||||||
bool switchable)
|
bool switchable)
|
||||||
: connectionFile(connectionFile), clientInfo(clientInfo), clientInfoMonitor(clientInfoMonitor), taskID(taskID),
|
: connectionFile(connectionFile), clientInfo(clientInfo), clientInfoMonitor(clientInfoMonitor), taskID(taskID),
|
||||||
clientLocality(clientLocality), enableLocalityLoadBalance(enableLocalityLoadBalance), lockAware(lockAware),
|
clientLocality(clientLocality), enableLocalityLoadBalance(enableLocalityLoadBalance), lockAware(lockAware),
|
||||||
<<<<<<< HEAD
|
|
||||||
apiVersion(apiVersion), switchable(switchable), proxyProvisional(false), cc("TransactionMetrics"),
|
apiVersion(apiVersion), switchable(switchable), proxyProvisional(false), cc("TransactionMetrics"),
|
||||||
=======
|
|
||||||
apiVersion(apiVersion), switchable(switchable), provisional(false), cc("TransactionMetrics"),
|
|
||||||
>>>>>>> release-6.3
|
|
||||||
transactionReadVersions("ReadVersions", cc), transactionReadVersionsThrottled("ReadVersionsThrottled", cc),
|
transactionReadVersions("ReadVersions", cc), transactionReadVersionsThrottled("ReadVersionsThrottled", cc),
|
||||||
transactionReadVersionsCompleted("ReadVersionsCompleted", cc),
|
transactionReadVersionsCompleted("ReadVersionsCompleted", cc),
|
||||||
transactionReadVersionBatches("ReadVersionBatches", cc),
|
transactionReadVersionBatches("ReadVersionBatches", cc),
|
||||||
@ -872,24 +868,14 @@ DatabaseContext::DatabaseContext(Reference<AsyncVar<Reference<ClusterConnectionF
|
|||||||
transactionsCommitStarted("CommitStarted", cc), transactionsCommitCompleted("CommitCompleted", cc),
|
transactionsCommitStarted("CommitStarted", cc), transactionsCommitCompleted("CommitCompleted", cc),
|
||||||
transactionKeyServerLocationRequests("KeyServerLocationRequests", cc),
|
transactionKeyServerLocationRequests("KeyServerLocationRequests", cc),
|
||||||
transactionKeyServerLocationRequestsCompleted("KeyServerLocationRequestsCompleted", cc),
|
transactionKeyServerLocationRequestsCompleted("KeyServerLocationRequestsCompleted", cc),
|
||||||
<<<<<<< HEAD
|
|
||||||
transactionsTooOld("TooOld", cc), transactionsFutureVersions("FutureVersions", cc),
|
|
||||||
transactionsNotCommitted("NotCommitted", cc), transactionsMaybeCommitted("MaybeCommitted", cc),
|
|
||||||
transactionsResourceConstrained("ResourceConstrained", cc), transactionsThrottled("Throttled", cc),
|
|
||||||
transactionsProcessBehind("ProcessBehind", cc), outstandingWatches(0), latencies(1000), readLatencies(1000),
|
|
||||||
commitLatencies(1000), GRVLatencies(1000), mutationsPerCommit(1000), bytesPerCommit(1000), mvCacheInsertLocation(0),
|
|
||||||
healthMetricsLastUpdated(0), detailedHealthMetricsLastUpdated(0), internal(internal), transactionTracingEnabled(true),
|
|
||||||
smoothMidShardSize(CLIENT_KNOBS->SHARD_STAT_SMOOTH_AMOUNT),
|
|
||||||
transactionsExpensiveClearCostEstCount("ExpensiveClearCostEstCount", cc),
|
|
||||||
=======
|
|
||||||
transactionStatusRequests("StatusRequests", cc), transactionsTooOld("TooOld", cc),
|
transactionStatusRequests("StatusRequests", cc), transactionsTooOld("TooOld", cc),
|
||||||
transactionsFutureVersions("FutureVersions", cc), transactionsNotCommitted("NotCommitted", cc),
|
transactionsFutureVersions("FutureVersions", cc), transactionsNotCommitted("NotCommitted", cc),
|
||||||
transactionsMaybeCommitted("MaybeCommitted", cc), transactionsResourceConstrained("ResourceConstrained", cc),
|
transactionsMaybeCommitted("MaybeCommitted", cc), transactionsResourceConstrained("ResourceConstrained", cc),
|
||||||
transactionsThrottled("Throttled", cc), transactionsProcessBehind("ProcessBehind", cc), outstandingWatches(0),
|
transactionsThrottled("Throttled", cc), transactionsProcessBehind("ProcessBehind", cc), outstandingWatches(0),
|
||||||
latencies(1000), readLatencies(1000), commitLatencies(1000), GRVLatencies(1000), mutationsPerCommit(1000),
|
latencies(1000), readLatencies(1000), commitLatencies(1000), GRVLatencies(1000), mutationsPerCommit(1000),
|
||||||
bytesPerCommit(1000), mvCacheInsertLocation(0), healthMetricsLastUpdated(0), detailedHealthMetricsLastUpdated(0),
|
bytesPerCommit(1000), mvCacheInsertLocation(0), healthMetricsLastUpdated(0), detailedHealthMetricsLastUpdated(0),
|
||||||
internal(internal),
|
internal(internal), transactionTracingEnabled(true), smoothMidShardSize(CLIENT_KNOBS->SHARD_STAT_SMOOTH_AMOUNT),
|
||||||
>>>>>>> release-6.3
|
transactionsExpensiveClearCostEstCount("ExpensiveClearCostEstCount", cc),
|
||||||
specialKeySpace(std::make_unique<SpecialKeySpace>(specialKeys.begin, specialKeys.end, /* test */ false)) {
|
specialKeySpace(std::make_unique<SpecialKeySpace>(specialKeys.begin, specialKeys.end, /* test */ false)) {
|
||||||
dbId = deterministicRandom()->randomUniqueID();
|
dbId = deterministicRandom()->randomUniqueID();
|
||||||
connected = (clientInfo->get().commitProxies.size() && clientInfo->get().grvProxies.size())
|
connected = (clientInfo->get().commitProxies.size() && clientInfo->get().grvProxies.size())
|
||||||
@ -1057,22 +1043,14 @@ DatabaseContext::DatabaseContext(const Error& err)
|
|||||||
transactionsCommitStarted("CommitStarted", cc), transactionsCommitCompleted("CommitCompleted", cc),
|
transactionsCommitStarted("CommitStarted", cc), transactionsCommitCompleted("CommitCompleted", cc),
|
||||||
transactionKeyServerLocationRequests("KeyServerLocationRequests", cc),
|
transactionKeyServerLocationRequests("KeyServerLocationRequests", cc),
|
||||||
transactionKeyServerLocationRequestsCompleted("KeyServerLocationRequestsCompleted", cc),
|
transactionKeyServerLocationRequestsCompleted("KeyServerLocationRequestsCompleted", cc),
|
||||||
<<<<<<< HEAD
|
|
||||||
transactionsTooOld("TooOld", cc), transactionsFutureVersions("FutureVersions", cc),
|
|
||||||
transactionsNotCommitted("NotCommitted", cc), transactionsMaybeCommitted("MaybeCommitted", cc),
|
|
||||||
transactionsResourceConstrained("ResourceConstrained", cc), transactionsThrottled("Throttled", cc),
|
|
||||||
transactionsProcessBehind("ProcessBehind", cc), latencies(1000), readLatencies(1000), commitLatencies(1000),
|
|
||||||
GRVLatencies(1000), mutationsPerCommit(1000), bytesPerCommit(1000),
|
|
||||||
smoothMidShardSize(CLIENT_KNOBS->SHARD_STAT_SMOOTH_AMOUNT),
|
|
||||||
transactionsExpensiveClearCostEstCount("ExpensiveClearCostEstCount", cc), internal(false), transactionTracingEnabled(true) {}
|
|
||||||
=======
|
|
||||||
transactionStatusRequests("StatusRequests", cc), transactionsTooOld("TooOld", cc),
|
transactionStatusRequests("StatusRequests", cc), transactionsTooOld("TooOld", cc),
|
||||||
transactionsFutureVersions("FutureVersions", cc), transactionsNotCommitted("NotCommitted", cc),
|
transactionsFutureVersions("FutureVersions", cc), transactionsNotCommitted("NotCommitted", cc),
|
||||||
transactionsMaybeCommitted("MaybeCommitted", cc), transactionsResourceConstrained("ResourceConstrained", cc),
|
transactionsMaybeCommitted("MaybeCommitted", cc), transactionsResourceConstrained("ResourceConstrained", cc),
|
||||||
transactionsThrottled("Throttled", cc), transactionsProcessBehind("ProcessBehind", cc), latencies(1000),
|
transactionsThrottled("Throttled", cc), transactionsProcessBehind("ProcessBehind", cc), latencies(1000),
|
||||||
readLatencies(1000), commitLatencies(1000), GRVLatencies(1000), mutationsPerCommit(1000), bytesPerCommit(1000),
|
readLatencies(1000), commitLatencies(1000), GRVLatencies(1000), mutationsPerCommit(1000), bytesPerCommit(1000),
|
||||||
internal(false) {}
|
smoothMidShardSize(CLIENT_KNOBS->SHARD_STAT_SMOOTH_AMOUNT),
|
||||||
>>>>>>> release-6.3
|
transactionsExpensiveClearCostEstCount("ExpensiveClearCostEstCount", cc), internal(false),
|
||||||
|
transactionTracingEnabled(true) {}
|
||||||
|
|
||||||
Database DatabaseContext::create(Reference<AsyncVar<ClientDBInfo>> clientInfo, Future<Void> clientInfoMonitor, LocalityData clientLocality, bool enableLocalityLoadBalance, TaskPriority taskID, bool lockAware, int apiVersion, bool switchable) {
|
Database DatabaseContext::create(Reference<AsyncVar<ClientDBInfo>> clientInfo, Future<Void> clientInfoMonitor, LocalityData clientLocality, bool enableLocalityLoadBalance, TaskPriority taskID, bool lockAware, int apiVersion, bool switchable) {
|
||||||
return Database( new DatabaseContext( Reference<AsyncVar<Reference<ClusterConnectionFile>>>(), clientInfo, clientInfoMonitor, taskID, clientLocality, enableLocalityLoadBalance, lockAware, true, apiVersion, switchable ) );
|
return Database( new DatabaseContext( Reference<AsyncVar<Reference<ClusterConnectionFile>>>(), clientInfo, clientInfoMonitor, taskID, clientLocality, enableLocalityLoadBalance, lockAware, true, apiVersion, switchable ) );
|
||||||
|
@ -194,13 +194,11 @@ UID decodeProcessClassKeyOld( KeyRef const& key );
|
|||||||
extern const KeyRangeRef configKeys;
|
extern const KeyRangeRef configKeys;
|
||||||
extern const KeyRef configKeysPrefix;
|
extern const KeyRef configKeysPrefix;
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
// The differences between excluded and failed can be found in "command-line-interface.rst"
|
|
||||||
// and in the help message of the fdbcli command "exclude".
|
|
||||||
=======
|
|
||||||
// Change the value of this key to anything and that will trigger detailed data distribution team info log.
|
// Change the value of this key to anything and that will trigger detailed data distribution team info log.
|
||||||
extern const KeyRef triggerDDTeamInfoPrintKey;
|
extern const KeyRef triggerDDTeamInfoPrintKey;
|
||||||
>>>>>>> release-6.3
|
|
||||||
|
// The differences between excluded and failed can be found in "command-line-interface.rst"
|
||||||
|
// and in the help message of the fdbcli command "exclude".
|
||||||
|
|
||||||
// "\xff/conf/excluded/1.2.3.4" := ""
|
// "\xff/conf/excluded/1.2.3.4" := ""
|
||||||
// "\xff/conf/excluded/1.2.3.4:4000" := ""
|
// "\xff/conf/excluded/1.2.3.4:4000" := ""
|
||||||
|
@ -380,11 +380,8 @@ void ServerKnobs::initialize(bool randomize, ClientKnobs* clientKnobs, bool isSi
|
|||||||
init( PROXY_COMPUTE_BUCKETS, 20000 );
|
init( PROXY_COMPUTE_BUCKETS, 20000 );
|
||||||
init( PROXY_COMPUTE_GROWTH_RATE, 0.01 );
|
init( PROXY_COMPUTE_GROWTH_RATE, 0.01 );
|
||||||
init( TXN_STATE_SEND_AMOUNT, 4 );
|
init( TXN_STATE_SEND_AMOUNT, 4 );
|
||||||
<<<<<<< HEAD
|
|
||||||
init( REPORT_TRANSACTION_COST_ESTIMATION_DELAY, 0.1 );
|
init( REPORT_TRANSACTION_COST_ESTIMATION_DELAY, 0.1 );
|
||||||
=======
|
|
||||||
init( PROXY_REJECT_BATCH_QUEUED_TOO_LONG, true );
|
init( PROXY_REJECT_BATCH_QUEUED_TOO_LONG, true );
|
||||||
>>>>>>> release-6.3
|
|
||||||
|
|
||||||
init( RESET_MASTER_BATCHES, 200 );
|
init( RESET_MASTER_BATCHES, 200 );
|
||||||
init( RESET_RESOLVER_BATCHES, 200 );
|
init( RESET_RESOLVER_BATCHES, 200 );
|
||||||
|
@ -311,11 +311,8 @@ public:
|
|||||||
int PROXY_COMPUTE_BUCKETS;
|
int PROXY_COMPUTE_BUCKETS;
|
||||||
double PROXY_COMPUTE_GROWTH_RATE;
|
double PROXY_COMPUTE_GROWTH_RATE;
|
||||||
int TXN_STATE_SEND_AMOUNT;
|
int TXN_STATE_SEND_AMOUNT;
|
||||||
<<<<<<< HEAD
|
|
||||||
double REPORT_TRANSACTION_COST_ESTIMATION_DELAY;
|
double REPORT_TRANSACTION_COST_ESTIMATION_DELAY;
|
||||||
=======
|
|
||||||
bool PROXY_REJECT_BATCH_QUEUED_TOO_LONG;
|
bool PROXY_REJECT_BATCH_QUEUED_TOO_LONG;
|
||||||
>>>>>>> release-6.3
|
|
||||||
|
|
||||||
int RESET_MASTER_BATCHES;
|
int RESET_MASTER_BATCHES;
|
||||||
int RESET_RESOLVER_BATCHES;
|
int RESET_RESOLVER_BATCHES;
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<<<<<<< HEAD
|
|
||||||
<Version>7.0.0</Version>
|
<Version>7.0.0</Version>
|
||||||
<PackageName>7.0</PackageName>
|
<PackageName>7.0</PackageName>
|
||||||
=======
|
|
||||||
<Version>6.3.11</Version>
|
|
||||||
<PackageName>6.3</PackageName>
|
|
||||||
>>>>>>> release-6.3
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user