Fix compiler error

pull/4188/head
René Cannaò 3 years ago
parent c1a36bdd9b
commit 31c10cbfe0

@ -9644,7 +9644,7 @@ int ProxySQL_Admin::stats___save_mysql_query_digest_to_sqlite(
int num_rows = resultset ? resultset->rows_count : digest_umap->size();
int max_bulk_row_idx = num_rows/32;
max_bulk_row_idx=max_bulk_row_idx*32;
auto it = resultset ? (std::unordered_map<uint64_t, void *>::iterator)NULL : digest_umap->cbegin();
auto it = resultset ? digest_umap->cend() : digest_umap->cbegin();
int i = 0;
// If the function do not receives a resultset, it gets the values directly from the digest_umap
while (resultset ? i != resultset->rows_count : it != digest_umap->end()) {

Loading…
Cancel
Save