[Commits] Rev 3510: Cassandra SE: small optimization: StringCopyConverter::mariadb_to_cassandra doesn't need to make NULL-terminated strings. in file:///data0/psergey/dev2/5.5-cassandra-r01/

Sergey Petrunya psergey at askmonty.org
Wed Sep 12 19:52:23 EEST 2012


At file:///data0/psergey/dev2/5.5-cassandra-r01/

------------------------------------------------------------
revno: 3510
revision-id: psergey at askmonty.org-20120912165223-ntxo9x7vhfe267y1
parent: psergey at askmonty.org-20120912033623-dykpfrm04uq7nm5f
committer: Sergey Petrunya <psergey at askmonty.org>
branch nick: 5.5-cassandra-r01
timestamp: Wed 2012-09-12 20:52:23 +0400
message:
  Cassandra SE: small optimization: StringCopyConverter::mariadb_to_cassandra doesn't need to make NULL-terminated strings.
=== modified file 'storage/cassandra/ha_cassandra.cc'
--- a/storage/cassandra/ha_cassandra.cc	2012-09-10 10:40:07 +0000
+++ b/storage/cassandra/ha_cassandra.cc	2012-09-12 16:52:23 +0000
@@ -595,7 +595,7 @@
   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;
   }



More information about the commits mailing list