diff options
author | a-romanov <[email protected]> | 2022-07-29 12:49:42 +0300 |
---|---|---|
committer | a-romanov <[email protected]> | 2022-07-29 12:49:42 +0300 |
commit | ed553cc617287bad3f988a7c2dcb4451f10e6c96 (patch) | |
tree | 546539af45a0685c3d0da7ba7d05a0946ba7ed81 | |
parent | e379c774726d2d8e8f107a146da6d9785efa26f8 (diff) |
+ pair of simple tests.
-rw-r--r-- | ydb/library/yql/providers/s3/actors/yql_s3_write_actor.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ydb/library/yql/providers/s3/actors/yql_s3_write_actor.cpp b/ydb/library/yql/providers/s3/actors/yql_s3_write_actor.cpp index dff74316ecc..003a9384a95 100644 --- a/ydb/library/yql/providers/s3/actors/yql_s3_write_actor.cpp +++ b/ydb/library/yql/providers/s3/actors/yql_s3_write_actor.cpp @@ -321,8 +321,11 @@ private: } TString MakeSuffix() const { - const auto rand = std::make_tuple(RandomProvider->GenUuid4(), RandomProvider->GenRand()); - return Base64EncodeUrl(TStringBuf(reinterpret_cast<const char*>(&rand), sizeof(rand))); + if (RandomProvider) { + const auto rand = std::make_tuple(RandomProvider->GenUuid4(), RandomProvider->GenRand()); + return Base64EncodeUrl(TStringBuf(reinterpret_cast<const char*>(&rand), sizeof(rand))); + } + return ""; } STRICT_STFUNC(StateFunc, |