@@ -122,7 +122,9 @@ void TTLPurger::SchemaWatcherJob() {
122
122
NdbEventOperation* op = nullptr ;
123
123
NdbDictionary::Dictionary::List list;
124
124
const char * message_buf = " API_OK" ;
125
+ #ifdef DEBUG_EVENT
125
126
Uint32 event_nums = 0 ;
127
+ #endif
126
128
[[maybe_unused]] char event_name_buf[128 ];
127
129
char slock_buf_pre[32 ];
128
130
char slock_buf[32 ];
@@ -353,11 +355,13 @@ void TTLPurger::SchemaWatcherJob() {
353
355
op->getNdbError ().message );
354
356
goto err;
355
357
}
358
+ #ifdef DEBUG_EVENT
356
359
event_nums++;
357
360
DEB_EVENT (" EVENT [%u]: %s, GCI = %llu" ,
358
361
event_nums,
359
362
GetEventName (op->getEventType (), event_name_buf),
360
363
op->getGCI ());
364
+ #endif
361
365
char * ptr_pre = nullptr ;
362
366
char * ptr = nullptr ;
363
367
std::string db_str_pre;
@@ -922,13 +926,15 @@ enum SpecialShardVal {
922
926
kShardFirst = 0
923
927
};
924
928
929
+ /*
925
930
static const uint mon_lengths[2][MONS_PER_YEAR] = {
926
931
{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31},
927
932
{31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}};
933
+ static const uint year_lengths[2] = {DAYS_PER_NYEAR, DAYS_PER_LYEAR};
934
+ */
928
935
static const uint mon_starts[2 ][MONS_PER_YEAR] = {
929
936
{0 , 31 , 59 , 90 , 120 , 151 , 181 , 212 , 243 , 273 , 304 , 334 },
930
937
{0 , 31 , 60 , 91 , 121 , 152 , 182 , 213 , 244 , 274 , 305 , 335 }};
931
- static const uint year_lengths[2 ] = {DAYS_PER_NYEAR, DAYS_PER_LYEAR};
932
938
#define LEAPS_THRU_END_OF (y ) ((y) / 4 - (y) / 100 + (y) / 400 )
933
939
static my_time_t sec_since_epoch (int year, int mon, int mday, int hour, int min,
934
940
int sec) {
0 commit comments