Skip to content

Commit 9908c4f

Browse files
committed
Add cdb2 legacy defaults flag
Signed-off-by: Salil Chandra <schandra107@bloomberg.net>
1 parent 36e7078 commit 9908c4f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cdb2api/cdb2api.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,19 @@ static int cdb2_alarm_unread_socket_data_set_from_env = 0;
161161
static int cdb2_max_discard_records = 1;
162162
static int cdb2_max_discard_records_set_from_env = 0;
163163
/* flattens column values in protobuf structure */
164+
#ifdef CDB2_LEGACY_DEFAULTS
165+
static int cdb2_flat_col_vals = 0;
166+
#else
164167
static int cdb2_flat_col_vals = 1;
168+
#endif
165169
static int cdb2_flat_col_vals_set_from_env = 0;
166170
/* estimates how much memory protobuf will need, and pre-allocates that much */
167171
static int CDB2_PROTOBUF_HEURISTIC_INIT_SIZE = 1024;
172+
#ifdef CDB2_LEGACY_DEFAULTS
173+
static int cdb2_protobuf_heuristic = 0;
174+
#else
168175
static int cdb2_protobuf_heuristic = 1;
176+
#endif
169177
static int cdb2_protobuf_heuristic_set_from_env = 0;
170178

171179
static int CDB2_REQUEST_FP = 0;

0 commit comments

Comments
 (0)