opencurve / curve

Curve is a sandbox project hosted by the CNCF Foundation. It's cloud-native, high-performance, and easy to operate. Curve is an open-source distributed storage system for block and shared file storage.
https://opencurve.io
Apache License 2.0
2.33k stars 522 forks source link

Fix: curvefs/metaserver ut crash when compiling with release mode #2921

Closed Ziy1-Tan closed 11 months ago

Ziy1-Tan commented 11 months ago

What problem does this PR solve?

Issue Number: https://github.com/opencurve/curve/issues/2916

Problem Summary:

What is changed and how it works?

What's Changed:

Add anonymous namespace wraps class HashIterator.

How it Works: Classes with the same name (HashItertor) in the same namespace may lead to undefined behavior.

Result: image

Side effects(Breaking backward compatibility? Performance regression?):

Check List

Ziy1-Tan commented 11 months ago

cicheck

Ziy1-Tan commented 11 months ago

cicheck

Ziy1-Tan commented 11 months ago

cicheck

Ziy1-Tan commented 11 months ago

cicheck

Ziy1-Tan commented 11 months ago

cicheck