@@ -197,6 +197,45 @@ int rondb_redis_handler(const pink::RedisCmdArgsType &argv,
197
197
assign_generic_err_to_response (response, error_message);
198
198
}
199
199
}
200
+ else if (strcasecmp (command, " HGET" ) == 0 )
201
+ {
202
+ if (argv.size () == 3 )
203
+ {
204
+ rondb_hget_command (ndb, argv, response);
205
+ }
206
+ else
207
+ {
208
+ char error_message[256 ];
209
+ snprintf (error_message, sizeof (error_message), REDIS_WRONG_NUMBER_OF_ARGS, argv[0 ].c_str ());
210
+ assign_generic_err_to_response (response, error_message);
211
+ }
212
+ }
213
+ else if (strcasecmp (command, " HSET" ) == 0 )
214
+ {
215
+ if (argv.size () == 4 )
216
+ {
217
+ rondb_hset_command (ndb, argv, response);
218
+ }
219
+ else
220
+ {
221
+ char error_message[256 ];
222
+ snprintf (error_message, sizeof (error_message), REDIS_WRONG_NUMBER_OF_ARGS, argv[0 ].c_str ());
223
+ assign_generic_err_to_response (response, error_message);
224
+ }
225
+ }
226
+ else if (strcasecmp (command, " HINCR" ) == 0 )
227
+ {
228
+ if (argv.size () == 3 )
229
+ {
230
+ rondb_hincr_command (ndb, argv, response);
231
+ }
232
+ else
233
+ {
234
+ char error_message[256 ];
235
+ snprintf (error_message, sizeof (error_message), REDIS_WRONG_NUMBER_OF_ARGS, argv[0 ].c_str ());
236
+ assign_generic_err_to_response (response, error_message);
237
+ }
238
+ }
200
239
else
201
240
{
202
241
unsupported_command (argv, response);
@@ -209,7 +248,8 @@ int rondb_redis_handler(const pink::RedisCmdArgsType &argv,
209
248
If this limit is reached, the Ndb object will not create any new ones.
210
249
Hence, better to catch these cases early.
211
250
*/
212
- print_args (argv);
251
+ printf (" Failed to stop transaction\n " );
252
+ // print_args(argv);
213
253
printf (" Number of transactions started: %lld\n " , ndb->getClientStat (ndb->TransStartCount ));
214
254
printf (" Number of transactions closed: %lld\n " , ndb->getClientStat (ndb->TransCloseCount ));
215
255
exit (1 );
0 commit comments