ruby-binlog 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/ext/ruby_binlog.cpp CHANGED
@@ -22,9 +22,10 @@ struct Client {
22
22
  if (p->m_binlog) {
23
23
  delete p->m_binlog;
24
24
  p->m_binlog = 0;
25
- p->m_table_map = 0;
26
25
  }
27
26
 
27
+ p->m_table_map = 0;
28
+
28
29
  delete p;
29
30
  }
30
31
 
@@ -9,9 +9,10 @@ void FormatEvent::free(FormatEvent *p) {
9
9
  if (p->m_event) {
10
10
  delete p->m_event;
11
11
  p->m_event = 0;
12
- p->m_event_header = 0;
13
12
  }
14
13
 
14
+ p->m_event_header = 0;
15
+
15
16
  delete p;
16
17
  }
17
18
 
@@ -9,9 +9,10 @@ void IncidentEvent::free(IncidentEvent *p) {
9
9
  if (p->m_event) {
10
10
  delete p->m_event;
11
11
  p->m_event = 0;
12
- p->m_event_header = 0;
13
12
  }
14
13
 
14
+ p->m_event_header = 0;
15
+
15
16
  delete p;
16
17
  }
17
18
 
@@ -9,9 +9,10 @@ void IntVarEvent::free(IntVarEvent *p) {
9
9
  if (p->m_event) {
10
10
  delete p->m_event;
11
11
  p->m_event = 0;
12
- p->m_event_header = 0;
13
12
  }
14
13
 
14
+ p->m_event_header = 0;
15
+
15
16
  delete p;
16
17
  }
17
18
 
@@ -9,9 +9,10 @@ void QueryEvent::free(QueryEvent *p) {
9
9
  if (p->m_event) {
10
10
  delete p->m_event;
11
11
  p->m_event = 0;
12
- p->m_event_header = 0;
13
12
  }
14
13
 
14
+ p->m_event_header = 0;
15
+
15
16
  delete p;
16
17
  }
17
18
 
@@ -9,9 +9,10 @@ void RotateEvent::free(RotateEvent *p) {
9
9
  if (p->m_event) {
10
10
  delete p->m_event;
11
11
  p->m_event = 0;
12
- p->m_event_header = 0;
13
12
  }
14
13
 
14
+ p->m_event_header = 0;
15
+
15
16
  delete p;
16
17
  }
17
18
 
@@ -9,10 +9,11 @@ void RowEvent::free(RowEvent *p) {
9
9
  if (p->m_event) {
10
10
  delete p->m_event;
11
11
  p->m_event = 0;
12
- p->m_table_map = 0;
13
- p->m_event_header = 0;
14
12
  }
15
13
 
14
+ p->m_event_header = 0;
15
+ p->m_table_map = 0;
16
+
16
17
  delete p;
17
18
  }
18
19
 
@@ -205,17 +206,6 @@ VALUE RowEvent::get_rows(VALUE self) {
205
206
  rb_row = proc_delete(fields);
206
207
  }
207
208
 
208
- /*
209
- if (event->get_event_type() == mysql::UPDATE_ROWS_EVENT)
210
- {
211
- ++it;
212
- mysql::Row_of_fields fields2= *it;
213
- table_update(os.str(),fields,fields2);
214
- }
215
- if (event->get_event_type() == mysql::DELETE_ROWS_EVENT)
216
- table_delete(os.str(),fields);
217
- */
218
-
219
209
  rb_ary_push(retval, rb_row);
220
210
  } while (++itor != rows.end());
221
211
 
@@ -9,9 +9,10 @@ void TableMapEvent::free(TableMapEvent *p) {
9
9
  if (p->m_event) {
10
10
  delete p->m_event;
11
11
  p->m_event = 0;
12
- p->m_event_header = 0;
13
12
  }
14
13
 
14
+ p->m_event_header = 0;
15
+
15
16
  delete p;
16
17
  }
17
18
 
@@ -9,9 +9,10 @@ void UnimplementedEvent::free(QueryEvent *p) {
9
9
  if (p->m_event) {
10
10
  delete p->m_event;
11
11
  p->m_event = 0;
12
- p->m_event_header = 0;
13
12
  }
14
13
 
14
+ p->m_event_header = 0;
15
+
15
16
  delete p;
16
17
  }
17
18
 
@@ -9,9 +9,10 @@ void UserVarEvent::free(UserVarEvent *p) {
9
9
  if (p->m_event) {
10
10
  delete p->m_event;
11
11
  p->m_event = 0;
12
- p->m_event_header = 0;
13
12
  }
14
13
 
14
+ p->m_event_header = 0;
15
+
15
16
  delete p;
16
17
  }
17
18
 
@@ -9,9 +9,10 @@ void XidEvent::free(XidEvent *p) {
9
9
  if (p->m_event) {
10
10
  delete p->m_event;
11
11
  p->m_event = 0;
12
- p->m_event_header = 0;
13
12
  }
14
13
 
14
+ p->m_event_header = 0;
15
+
15
16
  delete p;
16
17
  }
17
18
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-binlog
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - winebarrel