Skip to content

Commit

Permalink
Bug #23258321 KEYRING_KEY_REMOVE CAUSES SERVER TO CRASH AFTER SERVER …
Browse files Browse the repository at this point in the history
…RESTART - post push fix 2
  • Loading branch information
Robert Golebiowski committed May 13, 2016
1 parent c20497c commit b8dabc1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion plugin/keyring/buffered_file_io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ my_bool Buffered_file_io::operator<<(const IKey* key)

my_bool Buffered_file_io::operator>>(IKey **key)
{
DBUG_ASSERT(*key == NULL);
*key= NULL;

boost::movelib::unique_ptr<Key> key_ptr(new Key());
Expand Down
2 changes: 1 addition & 1 deletion unittest/gunit/keyring/buffered_file_io-t.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ namespace keyring_buffered_file_io_unittest

Buffered_file_io *buffered_io_2= new Buffered_file_io(logger);
buffered_io_2->init(&file_name);
IKey *empty_key;
IKey *empty_key= NULL;
retVal= *buffered_io_2 >> &empty_key;
EXPECT_EQ(retVal, 1);
EXPECT_STREQ("Robert_add_keyRoberts_add_key_type",
Expand Down

0 comments on commit b8dabc1

Please sign in to comment.