prevent core when injecting when not in sync with host

as far as collections and clock.
This commit is contained in:
Matt 2015-04-28 15:29:26 -07:00
parent 33985734ba
commit a3f1802b26
2 changed files with 8 additions and 2 deletions

@ -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; }
}