Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RAC-6786]Modify macAddress to lower case before writing to DB #330

Merged
merged 1 commit into from May 10, 2018

Conversation

iceiilin
Copy link
Member

@iceiilin iceiilin commented May 9, 2018

A bug is reported about upper cases of MAC Address in lookups collection but cannot be queried. The reason is in on-core, we change the query to lower case before searching in mongoDB.

MAC Address can be either upper or lower case, but data in MongoDB is case sensitive, and insensitive operations could not leverage index and slow down the response. So modifying MAC address to lower case before updating documents, which is align with common practice in *nix such as dhcpd.

@lanchongyizu lanchongyizu merged commit c7d7e97 into RackHD:master May 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants