patch 4.0

This commit is contained in:
wangzelin.wzl
2022-10-24 10:34:53 +08:00
parent 4ad6e00ec3
commit 93a1074b0c
10533 changed files with 2588271 additions and 2299373 deletions

View File

@ -26,7 +26,7 @@ using namespace oceanbase;
using namespace common;
using namespace hash;
int main(int argc, char** argv)
int main(int argc, char **argv)
{
UNUSED(argc);
UNUSED(argv);
@ -34,16 +34,19 @@ int main(int argc, char** argv)
ObHashSet<int64_t>::iterator iter;
set.create(10);
for (int64_t i = 0; i < 10; i++) {
for (int64_t i = 0; i < 10; i++)
{
assert(OB_SUCCESS == set.set_refactored(i));
}
for (int64_t i = 0; i < 10; i++) {
for (int64_t i = 0; i < 10; i++)
{
assert(OB_HASH_EXIST == set.exist_refactored(i));
}
int64_t i = 0;
for (iter = set.begin(); iter != set.end(); iter++, i++) {
for (iter = set.begin(); iter != set.end(); iter++, i++)
{
assert(i == iter->first);
fprintf(stderr, "%s\n", typeid(iter->second).name());
}