We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3577ef commit 1181138Copy full SHA for 1181138
src/storage/index/b_plus_tree.cpp
@@ -123,9 +123,7 @@ INDEX_TEMPLATE_ARGUMENTS
123
void BPLUSTREE_TYPE::InsertFromFile(const std::string &file_name, Transaction *txn) {
124
int64_t key;
125
std::ifstream input(file_name);
126
- while (input) {
127
- input >> key;
128
-
+ while (input >> key) {
129
KeyType index_key;
130
index_key.SetFromInteger(key);
131
RID rid(key);
@@ -140,8 +138,7 @@ INDEX_TEMPLATE_ARGUMENTS
140
138
void BPLUSTREE_TYPE::RemoveFromFile(const std::string &file_name, Transaction *txn) {
141
139
142
143
144
145
146
147
Remove(index_key, txn);
0 commit comments