summaryrefslogtreecommitdiff
path: root/storage/cassandra/ha_cassandra.cc
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2012-09-12 20:52:23 +0400
committerSergey Petrunya <psergey@askmonty.org>2012-09-12 20:52:23 +0400
commit16fec32ecc2492cf8c2d56f0f03d6bfb2a1b7f2b (patch)
tree46aa8ec570209ed5712b1f4f158483231892965c /storage/cassandra/ha_cassandra.cc
parente4bffe61784f82fb9b8df43075481d0d7468d200 (diff)
downloadmariadb-git-16fec32ecc2492cf8c2d56f0f03d6bfb2a1b7f2b.tar.gz
Cassandra SE: small optimization: StringCopyConverter::mariadb_to_cassandra doesn't need to make NULL-terminated strings.
Diffstat (limited to 'storage/cassandra/ha_cassandra.cc')
-rw-r--r--storage/cassandra/ha_cassandra.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/cassandra/ha_cassandra.cc b/storage/cassandra/ha_cassandra.cc
index f1a5916ffc6..af34750d031 100644
--- a/storage/cassandra/ha_cassandra.cc
+++ b/storage/cassandra/ha_cassandra.cc
@@ -595,7 +595,7 @@ public:
bool mariadb_to_cassandra(char **cass_data, int *cass_data_len)
{
String *pstr= field->val_str(&buf);
- *cass_data= (char*)pstr->c_ptr();
+ *cass_data= (char*)pstr->ptr();
*cass_data_len= pstr->length();
return false;
}