The branch, 1.2.40 has been updated
       via  22138474060cba8c3a9b8b863488655ff6926258 (commit)
      from  0a9484c20cb0d3cd58c0ffeabca81c7b9aeca12d (commit)

http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=1.2.40


- Log -----------------------------------------------------------------
commit 22138474060cba8c3a9b8b863488655ff6926258
Author: Ronnie Sahlberg <[email protected]>
Date:   Mon Feb 20 12:12:56 2012 +1100

    ReadOnly: Do not force all normal database to READONLY.
    Leave ro disabled by default and activate later by explicit calls to ctdb 
setdbreadonly

-----------------------------------------------------------------------

Summary of changes:
 server/ctdb_ltdb_server.c |   28 ----------------------------
 1 files changed, 0 insertions(+), 28 deletions(-)


Changeset truncated at 500 lines:

diff --git a/server/ctdb_ltdb_server.c b/server/ctdb_ltdb_server.c
index 42c3c56..27d773b 100644
--- a/server/ctdb_ltdb_server.c
+++ b/server/ctdb_ltdb_server.c
@@ -964,34 +964,6 @@ again:
                }
        }
 
-       /* Assume all non-persistent databases support read only delegations */
-       if (!ctdb_db->persistent) {
-               ctdb_db->readonly = true;
-       }
-
-       if (ctdb_db->readonly) {
-               char *ropath;
-
-               ropath = talloc_asprintf(ctdb_db, "%s.RO", ctdb_db->db_path);
-               if (ropath == NULL) {
-                       DEBUG(DEBUG_CRIT,("Failed to asprintf the tracking 
database\n"));
-                       ctdb_db->readonly = false;
-                       talloc_free(ctdb_db);
-                       return -1;
-               }
-               ctdb_db->rottdb = tdb_open(ropath, 
-                                     ctdb->tunable.database_hash_size, 
-                                     TDB_NOLOCK|TDB_CLEAR_IF_FIRST|TDB_NOSYNC,
-                                     O_CREAT|O_RDWR, 0);
-               if (ctdb_db->rottdb == NULL) {
-                       DEBUG(DEBUG_CRIT,("Failed to open/create the tracking 
database '%s'\n", ropath));
-                       ctdb_db->readonly = false;
-                       talloc_free(ctdb_db);
-                       return -1;
-               }
-               DEBUG(DEBUG_NOTICE,("OPENED tracking database : '%s'\n", 
ropath));
-       }
-
 
        DLIST_ADD(ctdb->db_list, ctdb_db);
 


-- 
CTDB repository

Reply via email to