Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix external_bytes column in yezzey_offload_relation_status_internal #53

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include <vector>

#include "virtual_index.h"
#include "storage_lister.h"
#include "yproxy.h"

#include "io.h"
#include "io_adv.h"
Expand Down Expand Up @@ -149,12 +151,12 @@ std::string make_yezzey_url(const std::string &prefix, int64_t modcount,
int64_t yezzey_virtual_relation_size(std::shared_ptr<IOadv> adv,
int32_t segid) {
try {
// auto lister = StorageLister(adv, GpIdentity.segindex);
auto lister = YProxyLister(adv, segid);
int64_t sz = 0;
// for (auto key : lister.reader_->getKeyList().contents) {
// sz +=
// lister.reader_->bucketReader.constructReaderParams(key).getKeySize();
// }
auto chunks = lister.list_relation_chunks();
for (auto chunk : chunks) {
sz += chunk.chunkSize;
}
/* external reader destruct */
return sz;
} catch (...) {
Expand Down
Loading