[Commits] Rev 4592: Remove garbage comments in file:///home/psergey/dev2/mysql-5.6-leveldb/

Sergey Petrunya psergey at askmonty.org
Mon Feb 4 10:07:41 EET 2013


At file:///home/psergey/dev2/mysql-5.6-leveldb/

------------------------------------------------------------
revno: 4592
revision-id: psergey at askmonty.org-20130204080738-baj6zjdpkhrpmucw
parent: psergey at askmonty.org-20130201180328-ocmbh9uvcoedmihp
committer: Sergey Petrunya <psergey at askmonty.org>
branch nick: mysql-5.6-leveldb
timestamp: Mon 2013-02-04 12:07:38 +0400
message:
  Remove garbage comments
=== modified file 'storage/leveldb/ha_leveldb.cc'
--- a/storage/leveldb/ha_leveldb.cc	2013-02-01 18:03:28 +0000
+++ b/storage/leveldb/ha_leveldb.cc	2013-02-04 08:07:38 +0000
@@ -850,9 +850,6 @@ int ha_leveldb::open(const char *name, i
   info(HA_STATUS_NO_LOCK | HA_STATUS_VARIABLE | HA_STATUS_CONST);
   timeout_sec= THDVAR(table->in_use, lock_wait_timeout);
 
-  //
-  //TODO: load the max(auto_increment) here.
-  //
   if (table->next_number_field)
     load_auto_incr_value();
 
@@ -2301,19 +2298,10 @@ void ha_leveldb::get_auto_increment(ulon
     nb_desired_values= 1;
 
   mysql_mutex_lock(&tbl_def->mutex);
-  // TODO: increment??
   *first_value= tbl_def->auto_incr_val;
   *nb_reserved_values= nb_desired_values;
   tbl_def->auto_incr_val += nb_desired_values;
-
   mysql_mutex_unlock(&tbl_def->mutex);
-
-#if 0
-  ha_heap::info(HA_STATUS_AUTO);
-  *first_value= stats.auto_increment_value;
-  /* such table has only table-level locking so reserves up to +inf */
-  *nb_reserved_values= ULONGLONG_MAX;
-#endif  
 }
 
 



More information about the commits mailing list