trace change and retain fitness file after restore

This commit is contained in:
sramamoorthy 2019-03-22 10:07:40 -07:00 committed by Alex Miller
parent 281c785f94
commit 382b246930
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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]);