Backport / cherry-pick from:
bc660d479709b5eee74357920a1940294c786216
to fix Windows build break.
Change-Id: I49d19bbea22e31bd600f694acf89d98ffa3a62f3
Reviewed-on: http://review.couchbase.org/63314
Well-Formed: buildbot <build@couchbase.com>
Reviewed-by: abhinav dangeti <abhinav@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
if (getConfiguration().isAccessScannerEnabled()) {
char timestr[20];
struct tm alogTim;
- if (gmtime_r((time_t *)&epstats.alogTime, &alogTim) == NULL) {
+ if (cb_gmtime_r((time_t *)&epstats.alogTime, &alogTim) == -1) {
add_casted_stat("ep_access_scanner_task_time", "UNKNOWN", add_stat,
cookie);
} else {