dbTalk Databases Forums  

db_env->rep_start(db_env, &local, "DB_REP_CLIENT)

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss db_env->rep_start(db_env, &local, "DB_REP_CLIENT) in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
hushanlima (Offline)
Junior Member
 
Posts: 3
Join Date: Aug 2006

Default db_env->rep_start(db_env, &local, "DB_REP_CLIENT) - 09-26-2006 , 11:10 PM






hi

My application is backup between MasterDB and Client, like the example in the document (db-4.1.25.NC\examples_c\ex_repquote).

When i run it as MasterDB with the "DB_REP_MASTER" flag, no problem
>>>>if ((ret = db_env->rep_start(db_env, &local, DB_REP_MASTER)) != 0)

but run it as ClientDB with the "DB_REP_CLIENT" flag , something is wrong,
and the ret is 22.
>>>>if ((ret = db_env->rep_start(db_env, &local, "DB_REP_CLIENT)) != 0)

will you please tell me the reason?
thanks!

Last edited by hushanlima : 09-26-2006 at 11:50 PM .

Reply With Quote
  #2  
Old   
bogdan_dorian@yahoo.com
 
Posts: n/a

Default Re: db_env->rep_start(db_env, &local, "DB_REP_CLIENT) - 09-28-2006 , 07:26 AM






Hi hushanlima,

The source code look like this:
---------------------
if ((ret =
dbenv->rep_start(dbenv, &local, DB_REP_CLIENT)) != 0) {
---------------------

I think that in your code there is a double quote (") before
DB_REP_CLIENT. Can you please check this out? If this is not the
problem, please tell me what kind of error msg did you receive?

Thanks,
Bogdan Coman, Oracle


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.