openvstorage / volumedriver

The Open vStorage VolumeDriver is the core of the Open vStorage solution: a high performance distributed block layer. It converts block storage into objects (Storage Container Objects).
Other
37 stars 18 forks source link

AlbaConnection: use list_objects instead of get_object_info to check for object existence #378

Closed redlicha closed 6 years ago

redlicha commented 6 years ago

When checking for the absence of objects, get_object_info leaves undesired error messages in the logs. Use

  virtual std::tuple<std::vector<std::string>, has_more>
  list_objects(const std::string &namespace_, const std::string &first,
               const include_first, const boost::optional<std::string> &last,
               const include_last, const int max,
               const reverse reverse = reverse::F) = 0;

instead.