rosedblabs / rosedb

Lightweight, fast and reliable key/value storage engine based on Bitcask.
https://rosedblabs.github.io
Apache License 2.0
4.61k stars 634 forks source link

space bug #44

Closed nanfeng1999 closed 3 years ago

nanfeng1999 commented 3 years ago

for example,if I print the command : "set hello world",When the number of spaces between 'hello' and 'world' exceeds one, an error occurs。This is because spaces occupy the length of a parameter, and the number of parameters in the code is limited to two. In order to solve this problem, you should remove spaces from the input parameters before judging

roseduan commented 3 years ago

If remove spaces from input, we may get a wrong val. I think we can print like this: set name "hello world".

roseduan commented 3 years ago

fixed in pr:https://github.com/roseduan/rosedb/pull/47