Skip to content

libroach: fix format specifier#44583

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
ajwerner:ajwerner/fix-format-specifier
Jan 31, 2020
Merged

libroach: fix format specifier#44583
craig[bot] merged 1 commit intocockroachdb:masterfrom
ajwerner:ajwerner/fix-format-specifier

Conversation

@ajwerner
Copy link
Copy Markdown
Contributor

In #44553 I used the wrong format specifier for an int64_t in libroach.
While it did not break the build it seems to break something for developers
using their local compiler (MacOS?).

Release note: None

In cockroachdb#44553 I used the wrong format specifier for an int64_t in libroach.
While it did not break the build it seems to break something for developers
using their local compiler (MacOS?).

Release note: None
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@ajwerner ajwerner changed the title engine: fix format specifier libroach: fix format specifier Jan 31, 2020
Copy link
Copy Markdown
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@ajwerner
Copy link
Copy Markdown
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Jan 31, 2020
44583: libroach: fix format specifier r=ajwerner a=ajwerner

In #44553 I used the wrong format specifier for an int64_t in libroach.
While it did not break the build it seems to break something for developers
using their local compiler (MacOS?).

Release note: None

Co-authored-by: Andrew Werner <ajwerner@cockroachlabs.com>
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jan 31, 2020

Build succeeded

@craig craig bot merged commit a3a8760 into cockroachdb:master Jan 31, 2020
Copy link
Copy Markdown
Collaborator

@petermattis petermattis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @ajwerner)


c-deps/libroach/db.cc, line 1159 at r1 (raw file):

    const int64_t new_size = cur_size + decoded_key.size() + iter.value().size();
    if (max_size > 0 && new_size > max_size) {
      return FmtStatus("export size (%" PRIi64 " bytes) exceeds max size (%" PRIi64 " bytes)",

I detest these format specifiers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants