File tree 3 files changed +13
-9
lines changed
3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ SHARED = $(SHARED1)
177
177
else
178
178
# Update db.h if you change these.
179
179
SHARED_MAJOR = 3
180
- SHARED_MINOR = 4
180
+ SHARED_MINOR = 5
181
181
SHARED1 = ${LIBNAME}.$(PLATFORM_SHARED_EXT )
182
182
SHARED2 = $(SHARED1 ) .$(SHARED_MAJOR )
183
183
SHARED3 = $(SHARED1 ) .$(SHARED_MAJOR ) .$(SHARED_MINOR )
Original file line number Diff line number Diff line change @@ -4163,15 +4163,19 @@ void DBImpl::BuildBatchGroup(Writer** last_writer,
4163
4163
break ;
4164
4164
}
4165
4165
4166
- if (w->batch != nullptr ) {
4167
- size += WriteBatchInternal::ByteSize (w->batch );
4168
- if (size > max_size) {
4169
- // Do not make batch too big
4170
- break ;
4171
- }
4166
+ if (w->batch == nullptr ) {
4167
+ // Do not include those writes with nullptr batch. Those are not writes,
4168
+ // those are something else. They want to be alone
4169
+ break ;
4170
+ }
4172
4171
4173
- write_batch_group->push_back (w->batch );
4172
+ size += WriteBatchInternal::ByteSize (w->batch );
4173
+ if (size > max_size) {
4174
+ // Do not make batch too big
4175
+ break ;
4174
4176
}
4177
+
4178
+ write_batch_group->push_back (w->batch );
4175
4179
w->in_batch_group = true ;
4176
4180
*last_writer = w;
4177
4181
}
Original file line number Diff line number Diff line change 7
7
// Also update Makefile if you change these
8
8
#define ROCKSDB_MAJOR 3
9
9
#define ROCKSDB_MINOR 5
10
- #define ROCKSDB_PATCH 0
10
+ #define ROCKSDB_PATCH 1
11
11
12
12
// Do not use these. We made the mistake of declaring macros starting with
13
13
// double underscore. Now we have to live with our choice. We'll deprecate these
You can’t perform that action at this time.
0 commit comments