From 935fdd030b2ab6f4a4924d42551e05152bf0d4a7 Mon Sep 17 00:00:00 2001 From: heyongqiang Date: Tue, 28 Aug 2012 11:34:57 -0700 Subject: [PATCH] fix filename_test Summary: as subject Test Plan: run filename_test Reviewers: dhruba Differential Revision: https://reviews.facebook.net/D4965 --- db/filename.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/filename.cc b/db/filename.cc index cc9bc5994f..9fa39e6c77 100644 --- a/db/filename.cc +++ b/db/filename.cc @@ -84,7 +84,7 @@ bool ParseFileName(const std::string& fname, } else if (rest == "LOCK") { *number = 0; *type = kDBLockFile; - } else if (rest == "LOG") { + } else if (rest == "LOG" || rest == "LOG.old") { *number = 0; *type = kInfoLogFile; } else if (rest.starts_with("LOG.old.")) {