From f857def7631f660b3e6574c58debdd4d37731f4f Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Fri, 7 Jun 2013 15:03:46 +0530 Subject: glusterd: Ignore directories matching *.tmp in store store being glusterd's persistent store under /var/lib/glusterd/ Change-Id: I1c01a09a8ce4a73ea612f05e7f14d4ab39ad1628 BUG: 971796 Signed-off-by: Krishnan Parthasarathi Reviewed-on: http://review.gluster.org/5177 Reviewed-by: Niels de Vos Reviewed-by: Xavier Hernandez Tested-by: Gluster Build System --- xlators/mgmt/glusterd/src/glusterd-store.h | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-store.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-store.h b/xlators/mgmt/glusterd/src/glusterd-store.h index 762604e23..942522c4a 100644 --- a/xlators/mgmt/glusterd/src/glusterd-store.h +++ b/xlators/mgmt/glusterd/src/glusterd-store.h @@ -74,6 +74,7 @@ typedef enum glusterd_store_ver_ac_{ if (dir) {\ entry = readdir (dir);\ while (entry && (!strcmp (entry->d_name, ".") ||\ + !fnmatch ("*.tmp", entry->d_name, 0) ||\ !strcmp (entry->d_name, ".."))) {\ entry = readdir (dir);\ }\ -- cgit