trace change and retain fitness file after restore
This commit is contained in:
parent
281c785f94
commit
382b246930
|
@ -3373,7 +3373,7 @@ ACTOR Future<Void> snapCreate(Database inputCx, StringRef snapCmd, UID snapUID)
|
|||
if (BUGGIFY) {
|
||||
int32_t toDelay = g_random->randomInt(1, 30);
|
||||
TraceEvent("SleepingBeforeEnablingPop")
|
||||
.detail("duration", toDelay);
|
||||
.detail("Duration", toDelay);
|
||||
wait(delay(toDelay));
|
||||
TraceEvent("DoneSleepingBeforeEnablingPop");
|
||||
}
|
||||
|
|
|
@ -1693,7 +1693,7 @@ int main(int argc, char* argv[]) {
|
|||
std::vector<std::string> returnFiles = platform::listFiles(childf, ext);
|
||||
for (int j = 0; j < returnFiles.size(); j++) {
|
||||
fprintf(stderr, "file : %s\n", returnFiles[j].c_str());
|
||||
if (returnFiles[j] != "fdb.cluster") {
|
||||
if (returnFiles[j] != "fdb.cluster" && returnFiles[j] != "fitness") {
|
||||
TraceEvent("DeletingNonSnapfiles")
|
||||
.detail("FileBeingDeleted", childf + "/" + returnFiles[j]);
|
||||
deleteFile(childf + "/" + returnFiles[j]);
|
||||
|
|
Loading…
Reference in New Issue