kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aw...@apache.org
Subject kudu git commit: KUDU-2601: correctly print newly created files
Date Tue, 09 Oct 2018 01:25:05 GMT
Repository: kudu
Updated Branches:
  refs/heads/master 4de4347a3 -> 31e3d4616


KUDU-2601: correctly print newly created files

I verified this manually by removing the contents of a data root from a
a cluster and running the `kudu fs update_dirs` tool, checking that it
correctly output files that were created when no new directories are
created (whereas before, it would omit printing the new files).

Change-Id: I2ab56f2516a97d4a5aa07451c37a4c39dfa965a4
Reviewed-on: http://gerrit.cloudera.org:8080/11614
Reviewed-by: Alexey Serbin <aserbin@cloudera.com>
Tested-by: Kudu Jenkins


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/31e3d461
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/31e3d461
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/31e3d461

Branch: refs/heads/master
Commit: 31e3d4616042093d1a621e6de820ba76f1cc767a
Parents: 4de4347
Author: Andrew Wong <awong@cloudera.com>
Authored: Mon Oct 8 08:36:50 2018 -0700
Committer: Andrew Wong <awong@cloudera.com>
Committed: Tue Oct 9 01:24:23 2018 +0000

----------------------------------------------------------------------
 src/kudu/fs/fs_manager.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/31e3d461/src/kudu/fs/fs_manager.cc
----------------------------------------------------------------------
diff --git a/src/kudu/fs/fs_manager.cc b/src/kudu/fs/fs_manager.cc
index 1255888..b3b2503 100644
--- a/src/kudu/fs/fs_manager.cc
+++ b/src/kudu/fs/fs_manager.cc
@@ -441,7 +441,7 @@ Status FsManager::Open(FsReport* report) {
     LOG(INFO) << "New directories created while opening local filesystem: " <<
         JoinStrings(created_dirs, ", ");
   }
-  if (!created_dirs.empty()) {
+  if (!created_files.empty()) {
     LOG(INFO) << "New files created while opening local filesystem: " <<
         JoinStrings(created_files, ", ");
   }


Mime
View raw message