Skip to content

Commit f151b03

Browse files
morgandoakshatsikarwar
authored andcommitted
Fix indentation
Signed-off-by: mdouglas47 <mdouglas47@bloomberg.net>
1 parent 2b72b9a commit f151b03

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

db/views_serial.c

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,34 +1408,34 @@ static timepart_view_t *partition_deserialize_cson_value(cson_value *cson_view,
14081408
else if (uuid_parse(tmp_str, source_id)) {
14091409
errs = "Wrong JSON format, SOURCE_ID value invalid uuid";
14101410
goto error;
1411-
}
1411+
}
14121412

1413-
tmp_str = cson_extract_str(obj, "ROLLOUT", err);
1414-
if (tmp_str) {
1415-
if (strncasecmp(tmp_str, "truncate", sizeof("truncate") + 1)) {
1416-
errs = "Wrong ROLLOUT value";
1417-
goto error;
1418-
}
1419-
rolltype = TIMEPART_ROLLOUT_TRUNCATE;
1420-
} else {
1421-
/* rollout is optional, it is only required to opt-in the new
1422-
* truncate based rollout
1423-
*/
1424-
bzero(err, sizeof(*err));
1425-
rolltype = TIMEPART_ROLLOUT_ADDDROP;
1413+
tmp_str = cson_extract_str(obj, "ROLLOUT", err);
1414+
if (tmp_str) {
1415+
if (strncasecmp(tmp_str, "truncate", sizeof("truncate") + 1)) {
1416+
errs = "Wrong ROLLOUT value";
1417+
goto error;
14261418
}
1419+
rolltype = TIMEPART_ROLLOUT_TRUNCATE;
1420+
} else {
1421+
/* rollout is optional, it is only required to opt-in the new
1422+
* truncate based rollout
1423+
*/
1424+
bzero(err, sizeof(*err));
1425+
rolltype = TIMEPART_ROLLOUT_ADDDROP;
1426+
}
14271427

1428-
view = timepart_new_partition(name, period, retention, starttime,
1429-
&source_id, rolltype, NULL, err);
1430-
if (!view)
1431-
goto error;
1428+
view = timepart_new_partition(name, period, retention, starttime,
1429+
&source_id, rolltype, NULL, err);
1430+
if (!view)
1431+
goto error;
14321432

1433-
/* TABLES */
1434-
tbl_arr = cson_extract_array(obj, "TABLES", err);
1435-
if (!tbl_arr) {
1436-
/* initial creation doesn't require a table section */
1437-
bzero(err, sizeof(*err));
1438-
goto look_for_shard0;
1433+
/* TABLES */
1434+
tbl_arr = cson_extract_array(obj, "TABLES", err);
1435+
if (!tbl_arr) {
1436+
/* initial creation doesn't require a table section */
1437+
bzero(err, sizeof(*err));
1438+
goto look_for_shard0;
14391439
}
14401440

14411441
view->nshards = cson_array_length_get(tbl_arr);

0 commit comments

Comments
 (0)