[asterisk-commits] oej: branch oej/codename-appleraisin-trunk r177350 - /team/oej/codename-apple...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 19 04:29:30 CST 2009


Author: oej
Date: Thu Feb 19 04:29:30 2009
New Revision: 177350

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=177350
Log:
Minor update

Modified:
    team/oej/codename-appleraisin-trunk/main/db.c

Modified: team/oej/codename-appleraisin-trunk/main/db.c
URL: http://svn.digium.com/svn-view/asterisk/team/oej/codename-appleraisin-trunk/main/db.c?view=diff&rev=177350&r1=177349&r2=177350
==============================================================================
--- team/oej/codename-appleraisin-trunk/main/db.c (original)
+++ team/oej/codename-appleraisin-trunk/main/db.c Thu Feb 19 04:29:30 2009
@@ -637,10 +637,6 @@
 	case CLI_GENERATE:
 		return NULL;
 	}
-	if (db_rt) {
-		ast_cli(a->fd, "showkey is not implemented for astdb/realtime ...yet\n");
-		return CLI_SUCCESS;
-	}
 
 	if (a->argc == 3) {
 		/* Key only */
@@ -654,6 +650,13 @@
 		ast_cli(a->fd, "Database unavailable\n");
 		return CLI_SUCCESS;	
 	}
+
+	if (db_rt) {
+		ast_mutex_unlock(&dblock);
+		handle_cli_database_show_realtime(a, "", a->argv[2]);
+		return CLI_SUCCESS;	
+	}
+
 	memset(&key, 0, sizeof(key));
 	memset(&data, 0, sizeof(data));
 	pass = 0;




More information about the asterisk-commits mailing list