diff options
| author | Nathan Kinder <nkinder@redhat.com> | 2008-10-17 22:12:48 +0000 |
|---|---|---|
| committer | Nathan Kinder <nkinder@redhat.com> | 2008-10-17 22:12:48 +0000 |
| commit | 567be2b6589e5fa3e11bb103f046bec55f37dd6b (patch) | |
| tree | 5c276c4fb82c4a010597898a4375556c92529249 /ldap/servers/plugins/replication/repl5_init.c | |
| parent | 6b1364ff27b4a9499089f76938fcd82da9e70baf (diff) | |
Related: 207457
Summary: Add support for 64-bit counters (phase 1).
Diffstat (limited to 'ldap/servers/plugins/replication/repl5_init.c')
| -rw-r--r-- | ldap/servers/plugins/replication/repl5_init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ldap/servers/plugins/replication/repl5_init.c b/ldap/servers/plugins/replication/repl5_init.c index 36af798b..b6d7de22 100644 --- a/ldap/servers/plugins/replication/repl5_init.c +++ b/ldap/servers/plugins/replication/repl5_init.c @@ -178,7 +178,8 @@ set_thread_private_cache ( void *buf ) char* get_repl_session_id (Slapi_PBlock *pb, char *idstr, CSN **csn) { - int connid=-1, opid=-1; + int opid=-1; + PRUint64 connid = 0; CSN *opcsn; char opcsnstr[CSN_STRSIZE]; @@ -192,7 +193,7 @@ get_repl_session_id (Slapi_PBlock *pb, char *idstr, CSN **csn) /* Avoid "Connection is NULL and hence cannot access SLAPI_CONN_ID" */ if (opid) { slapi_pblock_get (pb, SLAPI_CONN_ID, &connid); - PR_snprintf (idstr, REPL_SESSION_ID_SIZE, "conn=%d op=%d", connid, opid); + PR_snprintf (idstr, REPL_SESSION_ID_SIZE, "conn=%" PRIu64 " op=%d", connid, opid); } slapi_pblock_get ( pb, SLAPI_OPERATION, &op ); |
