Project

General

Profile

Bug #46406

pybind/mgr/balancer: should use "==" and "!=" for comparing strings

Added by Kefu Chai about 1 month ago. Updated about 1 month ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
nautilus, octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature:

Description

"is" is just not correct. as we cannot guarantee that two strings with the same value share the same identity.


Related issues

Copied to RADOS - Backport #46460: octopus: pybind/mgr/balancer: should use "==" and "!=" for comparing strings Resolved
Copied to RADOS - Backport #46461: nautilus: pybind/mgr/balancer: should use "==" and "!=" for comparing strings New

History

#1 Updated by Kefu Chai about 1 month ago

  • Status changed from Fix Under Review to Pending Backport

#2 Updated by Nathan Cutler about 1 month ago

  • Copied to Backport #46460: octopus: pybind/mgr/balancer: should use "==" and "!=" for comparing strings added

#3 Updated by Nathan Cutler about 1 month ago

  • Copied to Backport #46461: nautilus: pybind/mgr/balancer: should use "==" and "!=" for comparing strings added

Also available in: Atom PDF