Changeset: d44712e82aed for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d44712e82aed
Modified Files:
sql/storage/bat/bat_logger.c
Branch: hot-snapshot
Log Message:
Replaced %lld with the proper macro LLFMT
diffs (13 lines):
diff --git a/sql/storage/bat/bat_logger.c b/sql/storage/bat/bat_logger.c
--- a/sql/storage/bat/bat_logger.c
+++ b/sql/storage/bat/bat_logger.c
@@ -419,8 +419,7 @@ snapshot_wal(stream *plan, const char *d
snprintf(log_file, sizeof(log_file), "%s/%s%s", db_dir,
bat_logger->dir, LOGFILE);
snapshot_immediate_copy_file(plan, log_file, log_file + strlen(db_dir)
+ 1);
- // TODO replace %lld by the proper macro
- snprintf(log_file, sizeof(log_file), "%s%s.%lld", bat_logger->dir,
LOGFILE, bat_logger->id);
+ snprintf(log_file, sizeof(log_file), "%s%s." LLFMT, bat_logger->dir,
LOGFILE, bat_logger->id);
long pos = ftell(getFile(log));
if (pos < 0)
return strerror(errno);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list