Commit b269b859 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5206 fix shadow resolution style from underscore suffix to "new_" prefix


git-svn-id: file:///svn/toku/tokudb@45944 c7de825b-a66e-492c-adef-691d508d4ae1
parent 30ba1037
...@@ -56,10 +56,10 @@ struct omt { ...@@ -56,10 +56,10 @@ struct omt {
* *
*/ */
__attribute__((nonnull(2))) __attribute__((nonnull(2)))
void create_steal_sorted_array(omtdata_t **const values, const uint32_t numvalues, const uint32_t capacity_) void create_steal_sorted_array(omtdata_t **const values, const uint32_t numvalues, const uint32_t new_capacity)
{ {
invariant_notnull(values); invariant_notnull(values);
this->create_internal_no_array(capacity_); this->create_internal_no_array(new_capacity);
this->d.a.num_values = numvalues; this->d.a.num_values = numvalues;
this->d.a.values = *values; this->d.a.values = *values;
*values = nullptr; *values = nullptr;
...@@ -426,16 +426,16 @@ private: ...@@ -426,16 +426,16 @@ private:
} d; } d;
void create_internal_no_array(const uint32_t capacity_) { void create_internal_no_array(const uint32_t new_capacity) {
this->is_array = true; this->is_array = true;
this->capacity = capacity_; this->capacity = new_capacity;
this->d.a.start_idx = 0; this->d.a.start_idx = 0;
this->d.a.num_values = 0; this->d.a.num_values = 0;
this->d.a.values = nullptr; this->d.a.values = nullptr;
} }
void create_internal(const uint32_t capacity_) { void create_internal(const uint32_t new_capacity) {
this->create_internal_no_array(capacity_); this->create_internal_no_array(new_capacity);
XMALLOC_N(this->capacity, this->d.a.values); XMALLOC_N(this->capacity, this->d.a.values);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment