prevent core when injecting when not in sync with host #0
as far as collections and clock.
This commit is contained in:
parent
33985734ba
commit
a3f1802b26
4
Msg0.cpp
4
Msg0.cpp
@ -964,7 +964,9 @@ void handleRequest0 ( UdpSlot *slot , int32_t netnice ) {
|
||||
//char *coll = p;
|
||||
collnum_t collnum = *(collnum_t *)p; p += sizeof(collnum_t);
|
||||
|
||||
|
||||
CollectionRec *xcr = g_collectiondb.getRec ( collnum );
|
||||
if ( ! xcr ) g_errno = ENOCOLLREC;
|
||||
|
||||
// error set from XmlDoc::cacheTermLists()?
|
||||
if ( g_errno ) {
|
||||
us->sendErrorReply ( slot , EBADRDBID ); return;}
|
||||
|
@ -1907,7 +1907,11 @@ int64_t gettimeofdayInMillisecondsSynced() {
|
||||
char *xx = NULL; *xx = 0; }
|
||||
// sanity check
|
||||
if ( ! isClockInSync() ) {
|
||||
log("xml: clock not in sync with host #0 yet!!!!!!");
|
||||
static int s_printed = 0;
|
||||
if ( (s_printed % 100) == 0 ) {
|
||||
s_printed++;
|
||||
log("xml: clock not in sync with host #0 yet!!!!!!");
|
||||
}
|
||||
//char *xx = NULL; *xx = 0; }
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user