Fixed bad assertion. Maybe fixed MACH CE

This commit is contained in:
Vysheng 2014-09-03 13:39:28 +04:00
parent 6c9d18cacf
commit d2ac430c9c
2 changed files with 6 additions and 1 deletions

View file

@ -156,7 +156,7 @@ static int fetch_comb_binlog_set_qts (void *extra) {
static int fetch_comb_binlog_set_date (void *extra) {
int new_date = fetch_int ();
if (new_date < tgl_state.date) { return; }
if (new_date < tgl_state.date) { return 0; }
assert (new_date >= tgl_state.date);
tgl_state.date = new_date;
return 0;

View file

@ -37,6 +37,11 @@
//#include "interface.h"
#include "tools.h"
#ifdef __MACH__
#include <mach/clock.h>
#include <mach/mach.h>
#endif
#define RES_PRE 8
#define RES_AFTER 8
#define MAX_BLOCKS 1000000