-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Je/fix timestamp #6862
Je/fix timestamp #6862
Conversation
ffe8e7b
to
a322b00
Compare
05b1f35
to
96b1fd7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very few minor comments. Also, lint
build is complaining.
strftime(buffer2, sizeof(buffer2), "%Y-%m-%d %H:%M:%S", &buf); | ||
CHECK(strcmp(buffer1, buffer2) == 0); | ||
} | ||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this forgotten?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. If you want to test the performance of the new implementation against the old implementation this could come in handy.
src/realm/util/serializer.cpp
Outdated
int secs = remainingSeconds - minutes * 60; | ||
|
||
julian_to_date(julian_days, &year, &month, &day); | ||
// const char* format = (year < 0) ? "%05d-%02d-%02d %02d:%02d:%02d" : "%04d-%02d-%02d %02d:%02d:%02d"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this commented code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be deleted
@@ -24,6 +24,7 @@ | |||
#include <string> | |||
#include <fstream> | |||
#include <ostream> | |||
#include <chrono> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably this include is not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well - if you would like to run the performance testing it is.
@@ -757,7 +757,7 @@ TEST_IF(Upgrade_Database_9_10, REALM_MAX_BPNODE_SIZE == 4 || REALM_MAX_BPNODE_SI | |||
if (REALM_MAX_BPNODE_SIZE == 1000) { | |||
auto sg = DB::create(*hist, temp_copy); | |||
if (generate_json) { | |||
std::ofstream expect(test_util::get_test_path_prefix() + "expect_test_upgrade_database_9_to_10.json"); | |||
std::ofstream expect(test_util::get_test_path_prefix() + "/expect_test_upgrade_database_9_to_10.json"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this /
here? Isn't what we do in bool initialize_test_path(int argc, const char* argv[])
not sufficient?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently the prefix did not include the terminating '/'
Use Fliegel & Van Flandern algorithm
96b1fd7
to
cd4a6c8
Compare
lint is complaining on the formatting of the Json files. I will not fix that. They are formatted like jq likes it. |
What, How & Why?
Fixes #6855
☑️ ToDos