Sets the distribution policy attribute for a specified spaceDef.
Declaration
tibas_status tibasSpaceDef_SetDistributionPolicy
(tibasSpaceDef spaceDef,
tibas_distributionPolicy distributedPolicy)
Parameters
Parameter |
Description |
spaceDef |
The spaceDef object used to define the space.ActiveSpaces entity on which the function is invoked. |
distributedPolicy |
The distribution policy. |
Remarks
Use the tibasSpaceDef_SetDistributionPolicy() function to set the distribution policy attribute of the spaceDef for a space.
The distribution policy can be one of the following:
- TIBAS_DISTRIBUTED
- (Default setting) management of the space entries is shared among the seeders that have joined the space.
- TIBAS_NON_DISTRIBUTED
- A single seeder is responsible for all tuples in the space.
Note: Although in a nondistributed space, one seeder is responsible for the tuples, other seeders joined to the space may also replicate the tuples if a degree of replication is specified
Copyright © Cloud Software Group, Inc. All rights reserved.