Fix a memory corruption error
The backup container URL should be Key instead of KeyRef.
This commit is contained in:
parent
a8becb9027
commit
9da76c35ea
|
@ -278,7 +278,7 @@ public:
|
|||
// parallel restore
|
||||
Future<Void> parallelRestoreFinish(Database cx, UID randomUID);
|
||||
Future<Void> submitParallelRestore(Database cx, Key backupTag, Standalone<VectorRef<KeyRangeRef>> backupRanges,
|
||||
KeyRef bcUrl, Version targetVersion, bool lockDB, UID randomUID);
|
||||
Key bcUrl, Version targetVersion, bool lockDB, UID randomUID);
|
||||
Future<Void> atomicParallelRestore(Database cx, Key tagName, Standalone<VectorRef<KeyRangeRef>> ranges,
|
||||
Key addPrefix, Key removePrefix);
|
||||
|
||||
|
|
|
@ -3628,7 +3628,7 @@ public:
|
|||
}
|
||||
|
||||
ACTOR static Future<Void> submitParallelRestore(Database cx, Key backupTag,
|
||||
Standalone<VectorRef<KeyRangeRef>> backupRanges, KeyRef bcUrl,
|
||||
Standalone<VectorRef<KeyRangeRef>> backupRanges, Key bcUrl,
|
||||
Version targetVersion, bool lockDB, UID randomUID) {
|
||||
state Reference<ReadYourWritesTransaction> tr(new ReadYourWritesTransaction(cx));
|
||||
state int restoreIndex = 0;
|
||||
|
@ -4608,7 +4608,7 @@ Future<Void> FileBackupAgent::parallelRestoreFinish(Database cx, UID randomUID)
|
|||
}
|
||||
|
||||
Future<Void> FileBackupAgent::submitParallelRestore(Database cx, Key backupTag,
|
||||
Standalone<VectorRef<KeyRangeRef>> backupRanges, KeyRef bcUrl,
|
||||
Standalone<VectorRef<KeyRangeRef>> backupRanges, Key bcUrl,
|
||||
Version targetVersion, bool lockDB, UID randomUID) {
|
||||
return FileBackupAgentImpl::submitParallelRestore(cx, backupTag, backupRanges, bcUrl, targetVersion, lockDB,
|
||||
randomUID);
|
||||
|
|
Loading…
Reference in New Issue