[Pvfs2-cvs] commit by rzhong in pvfs2/src/io/trove/trove-dbpf:
dbpf-mgmt.c
CVS commit program
cvs at parl.clemson.edu
Fri Jul 25 14:53:14 EDT 2008
Update of /projects/cvsroot/pvfs2/src/io/trove/trove-dbpf
In directory parlweb1:/tmp/cvs-serv28379/src/io/trove/trove-dbpf
Modified Files:
Tag: rongrong
dbpf-mgmt.c
Log Message:
set is_rep_master in config to 2 to indicate no replication for mkspace
Index: dbpf-mgmt.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/trove/trove-dbpf/dbpf-mgmt.c,v
diff -p -u -r1.101.4.5 -r1.101.4.6
--- dbpf-mgmt.c 25 Jul 2008 04:47:58 -0000 1.101.4.5
+++ dbpf-mgmt.c 25 Jul 2008 18:53:14 -0000 1.101.4.6
@@ -48,6 +48,7 @@ extern int TROVE_shm_key_hint;
/*The following two parameters are for db log subsystem configuration*/
extern int TROVE_db_log_buffer_size_bytes;
extern char *TROVE_db_log_directory;
+extern int TROVE_db_rep_master;
struct dbpf_storage *my_storage_p = NULL;
static int db_open_count, db_close_count;
@@ -326,12 +327,12 @@ retry:
* should check the return value....
*/
dbenv->rep_set_transport(dbenv, 100/*self eid*/, PVFS_db_rep_send);
- if(TROVE_db_rep_master)
+ if(TROVE_db_rep_master == 1)
{
dbenv->rep_set_priority(dbenv, 100);
dbenv->rep_start(dbenv, NULL, DB_REP_MASTER);
}
- else
+ else if(TROVE_db_rep_master == 0)
{
dbenv->rep_set_priority(dbenv, 90);
dbenv->rep_start(dbenv, NULL, DB_REP_CLIENT);
More information about the Pvfs2-cvs
mailing list