Skip to content

Commit a46507a

Browse files
authored
Merge pull request ceph#66067 from galsalomon66/s3select-csv-initialize-variables-on-construction
RGW/s3select : variables initialization
2 parents e745ac8 + af7870f commit a46507a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rgw/rgw_s3select.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ RGWSelectObj_ObjStore_S3::RGWSelectObj_ObjStore_S3():
285285
m_start_scan_sz(0),
286286
m_end_scan_sz(0),
287287
m_object_size_for_processing(0),
288+
enable_progress(false),
288289
m_parquet_type(false),
289290
m_json_type(false),
290291
chunk_number(0),
@@ -388,7 +389,7 @@ int RGWSelectObj_ObjStore_S3::get_params(optional_yield y)
388389
int RGWSelectObj_ObjStore_S3::run_s3select_on_csv(const char* query, const char* input, size_t input_length)
389390
{
390391
int status = 0;
391-
uint32_t length_before_processing, length_post_processing;
392+
uint32_t length_before_processing = 0, length_post_processing = 0;
392393
csv_object::csv_defintions csv;
393394

394395
s3select_syntax.parse_query(query);

0 commit comments

Comments
 (0)