diff options
author | Krishnan Parthasarathi <kparthas@redhat.com> | 2013-06-07 15:03:46 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-06-14 12:54:07 -0700 |
commit | 886021a31bdac83c2124d08d64b81f22d82039d6 (patch) | |
tree | 7900777a8f34bad8e43adb2a2e5e8fb66422ab74 | |
parent | 2fda7a9de2edd624a03558d9a9a580e5639fef1f (diff) |
glusterd: Ignore directories matching *.tmp in store
Backport of http://review.gluster.org/5177
store being glusterd's persistent store under /var/lib/glusterd/
Change-Id: I1c01a09a8ce4a73ea612f05e7f14d4ab39ad1628
BUG: 971796
Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-on: http://review.gluster.org/5212
Reviewed-by: Xavier Hernandez <xhernandez@datalab.es>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-store.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.h b/xlators/mgmt/glusterd/src/glusterd-store.h index 68977dd9ce5..2a453772262 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);\ }\ |