[SCM] CTDB repository - branch master updated - ctdb-1.0.88-1-g85590e9
Ronnie Sahlberg
sahlberg at samba.org
Thu Aug 20 20:28:37 MDT 2009
The branch, master has been updated
via 85590e9dfaab0db16ce8103e509fd4d51aef4ad5 (commit)
from fbfa1c72875dda4d1636d8e72c67ba09b10455df (commit)
http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 85590e9dfaab0db16ce8103e509fd4d51aef4ad5
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date: Wed Aug 19 08:25:50 2009 +1000
skip any persistent databases ending in .bak
-----------------------------------------------------------------------
Summary of changes:
server/ctdb_ltdb_server.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/server/ctdb_ltdb_server.c b/server/ctdb_ltdb_server.c
index e76a50a..7940546 100644
--- a/server/ctdb_ltdb_server.c
+++ b/server/ctdb_ltdb_server.c
@@ -392,6 +392,12 @@ int ctdb_attach_persistent(struct ctdb_context *ctdb)
s = talloc_strdup(ctdb, de->d_name);
CTDB_NO_MEMORY(ctdb, s);
+ /* ignore names ending in .bak */
+ p = strstr(s, ".bak");
+ if (p != NULL) {
+ continue;
+ }
+
/* only accept names ending in .tdb */
p = strstr(s, ".tdb.");
if (len < 7 || p == NULL) {
--
CTDB repository
More information about the samba-cvs
mailing list