summaryrefslogtreecommitdiff
path: root/storage/oqgraph/graphcore.cc
diff options
context:
space:
mode:
authorAndrew McDonnell <bugs@andrewmcdonnell.net>2013-08-15 23:28:44 +0930
committerAndrew McDonnell <bugs@andrewmcdonnell.net>2013-08-15 23:28:44 +0930
commitc2fb0f2ab88cf911f81dc1359bc90e566a884bca (patch)
tree2e63b3dee7347e7e936e58d902b21fde1cce5bfa /storage/oqgraph/graphcore.cc
parent6e97d93c13c160d6d69313d362ac57bd2e7c16f9 (diff)
downloadmariadb-git-c2fb0f2ab88cf911f81dc1359bc90e566a884bca.tar.gz
Fix base segfault for order by. However, this shifts the problem elsewhere.
Diffstat (limited to 'storage/oqgraph/graphcore.cc')
-rw-r--r--storage/oqgraph/graphcore.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/oqgraph/graphcore.cc b/storage/oqgraph/graphcore.cc
index 28af0c10eb2..b5407baa534 100644
--- a/storage/oqgraph/graphcore.cc
+++ b/storage/oqgraph/graphcore.cc
@@ -947,7 +947,7 @@ namespace open_query
if (cursor)
cursor->current(ref);
else
- ref= reference();
+ new (ref_ptr) reference(); // avoid assignment operator because the intrusive_ptr swaps for unknown reasons, which means if ref is uninitialised it segfaults
}
int oqgraph::random(bool scan) throw()