summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorho.namkoong <ho.namkoong@samsung.com>2013-12-13 16:48:39 +0900
committerho.namkoong <ho.namkoong@samsung.com>2013-12-13 16:48:39 +0900
commit49a9a3a8d7891d5430416b63a4a2075032ee7e2f (patch)
tree2309aaa835ab6daa0841153d52bfb7088330901e
parent90f7c6fb9c1ccf01b45362849819863696e3bd0d (diff)
downloadsdb-49a9a3a8d7891d5430416b63a4a2075032ee7e2f.tar.gz
sdb-49a9a3a8d7891d5430416b63a4a2075032ee7e2f.tar.bz2
sdb-49a9a3a8d7891d5430416b63a4a2075032ee7e2f.zip
SDB: remove unnecessary hot patch
usb bug is patched in platform, so remove patch for it in sdb Change-Id: Ifa868a695d21f554b22ee90006d7eeb79f27f3c4 Signed-off-by: ho.namkoong <ho.namkoong@samsung.com>
-rw-r--r--src/common_modules.h4
-rw-r--r--src/log.c6
-rwxr-xr-xsrc/sockets.c3
-rwxr-xr-xsrc/transport.c15
4 files changed, 4 insertions, 24 deletions
diff --git a/src/common_modules.h b/src/common_modules.h
index fca32d0..a0b84e9 100644
--- a/src/common_modules.h
+++ b/src/common_modules.h
@@ -143,10 +143,6 @@ struct socket {
FD_EVENT fde;
int fd;
- //TODO HOT PATCH FOR 2048.
- char char_2048;
- int check_2048;
-
LIST_NODE* pkt_list;
TRANSPORT *transport;
diff --git a/src/log.c b/src/log.c
index 2f63502..c55d85d 100644
--- a/src/log.c
+++ b/src/log.c
@@ -160,9 +160,9 @@ void log_init(void)
log_parse(sdb_debug);
}
- char* trace_packet;
- trace_packet = getenv(TRACE_PACKET);
- if(!strcmp(trace_packet, "true")) {
+ char* trace_packet_char;
+ trace_packet_char = getenv(TRACE_PACKET);
+ if(!strcmp(trace_packet_char, "true")) {
trace_packet = 2;
}
else if ((loglevel_mask & (1 << SDBLOG_INFO)) != 0) {
diff --git a/src/sockets.c b/src/sockets.c
index e64d685..a35b503 100755
--- a/src/sockets.c
+++ b/src/sockets.c
@@ -483,8 +483,6 @@ static void local_socket_event_func(int fd, unsigned ev, void *_s)
} else {
p->len = MAX_PAYLOAD - avail;
- //TODO HOT PATCH FOR 2048.
-
if(peer_enqueue(s, p) < 0) {
//local socket is already closed by peer or should not close the socket.
return;
@@ -508,7 +506,6 @@ SDB_SOCKET *create_local_socket(int fd)
s->node = NULL;
s->pkt_list = NULL;
s->fd = fd;
- s->check_2048 = 0;
s->local_id = local_socket_next_id++;
s->node = prepend(&local_socket_list, s);
diff --git a/src/transport.c b/src/transport.c
index a5ca199..dd2d7e0 100755
--- a/src/transport.c
+++ b/src/transport.c
@@ -809,20 +809,7 @@ void wakeup_select_func(int _fd, unsigned ev, void *data) {
sock->remote_id = remote_id;
sock->transport = t;
}
- //TODO HOT PATCH FOR 2048.
- if(sock->check_2048 == 1) {
- sock->check_2048 = 0;
- PACKET *__p = get_apacket();
- __p->msg.command = A_WRTE;
- __p->msg.arg0 = sock->local_id;
- __p->msg.arg1 = sock->remote_id;
- __p->data[0] = sock->char_2048;
- __p->msg.data_length = 1;
- send_packet(__p, sock->transport);
- }
- else {
- local_socket_ready(sock);
- }
+ local_socket_ready(sock);
}
}
if(cmd == A_CLSE) {