Skip to content
Snippets Groups Projects
Commit d54f4ece authored by Aleksandr Lyapunov's avatar Aleksandr Lyapunov Committed by Aleksandr Lyapunov
Browse files

txm: fix a bug with wrong space:count() result

Internally space's indexes can containt dirty tuples that are
invisible for user. That's why there's special adjustment in
space:count() that substracts number of invisible tuple in the
space.

By a mistake that check thought that all prepared statements are
visible, which is wrong for autocommit reads, like standalone
space:count() without explicit transaction.

Fix it by using common for all reads practice: ignore prepared
statements if current transaction is NULL.

Closes #6421
NO_DOC=bugfix
parent c2dd8b0a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment