~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/row.cc

This patch adds the following functionality:

* Removes the need to manually enable replicators in order
  for an applier to work.
* Removes the enabled/disabled setting of both transaction
  applier plugins and transaction replicator plugins
* Pairs a replicator with an applier into a "ReplicationStream"
  and removes all checks for "enabled" replicators and appliers
* Allows modules that implement a TransactionApplier (such as
  the transaction_log module) to specify which replicator to
  use via a configuration variable.  For instance, the transaction
  log module now has --transaction-log-use-replicator=[default|filtered..]
  instead of the user having to do --default-replicator-enable and such
* Adds a new data dictionary table for REPLICATION_STREAMS, which
  allows querying of activated replication-to-applier streams
  managed by drizzled::ReplicationServices

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
 
#include <drizzled/server_includes.h>
 
16
#include "config.h"
17
17
#include <drizzled/error.h>
18
18
#include <drizzled/session.h>
19
19
 
20
20
#include <drizzled/item/row.h>
21
21
 
 
22
namespace drizzled
 
23
{
 
24
 
22
25
/**
23
26
  Row items used for comparing rows and IN operations on rows:
24
27
 
39
42
 
40
43
  //TODO: think placing 2-3 component items in item (as it done for function)
41
44
  if ((arg_count= arg.elements))
42
 
    items= (Item**) sql_alloc(sizeof(Item*)*arg_count);
 
45
    items= (Item**) memory::sql_alloc(sizeof(Item*)*arg_count);
43
46
  else
44
47
    items= 0;
45
48
  List_iterator<Item> li(arg);
195
198
  for (uint32_t i= 0; i < arg_count; i++)
196
199
    items[i]->bring_value();
197
200
}
 
201
 
 
202
} /* namespace drizzled */