Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译出错?semisync_slave.h:87:18: error: ?.aster_info?.has not been declared #45

Closed
lwcloud opened this issue Feb 28, 2017 · 1 comment

Comments

@lwcloud
Copy link

lwcloud commented Feb 28, 2017

In file included from /root/Downloads/AliSQL-master/sql/semisync_slave.cc:18:0:
/root/Downloads/AliSQL-master/sql/semisync_slave.h:87:18: error: ?.aster_info?.has not been declared
int slaveReply(Master_info* mi);
^
/root/Downloads/AliSQL-master/sql/semisync_slave.h:88:18: error: ?.aster_info?.has not been declared
int slaveStart(Master_info *mi);
^
/root/Downloads/AliSQL-master/sql/semisync_slave.h:89:17: error: ?.aster_info?.has not been declared
int slaveStop(Master_info mi);
^
/root/Downloads/AliSQL-master/sql/semisync_slave.h:90:23: error: ?.aster_info?.has not been declared
int requestTransmit(Master_info
);
^
/root/Downloads/AliSQL-master/sql/semisync_slave.h:92:18: error: ?.aster_info?.has not been declared
int resetSlave(Master_info *mi);
^
/root/Downloads/AliSQL-master/sql/semisync_slave.cc:85:35: error: ?.nt ReplSemiSyncSlave::slaveStart?.is not a static data member of ?.lass ReplSemiSyncSlave?
int ReplSemiSyncSlave::slaveStart(Master_info *mi)
^
/root/Downloads/AliSQL-master/sql/semisync_slave.cc:85:35: error: ?.aster_info?.was not declared in this scope
/root/Downloads/AliSQL-master/sql/semisync_slave.cc:85:48: error: ?.i?.was not declared in this scope
int ReplSemiSyncSlave::slaveStart(Master_info *mi)
^
/root/Downloads/AliSQL-master/sql/semisync_slave.cc:86:1: error: expected ?.?.or ?.?.before ?.?.token
{
^
/root/Downloads/AliSQL-master/sql/semisync_slave.cc:104:34: error: ?.nt ReplSemiSyncSlave::slaveStop?.is not a static data member of ?.lass ReplSemiSyncSlave?
int ReplSemiSyncSlave::slaveStop(Master_info *mi)
^
/root/Downloads/AliSQL-master/sql/semisync_slave.cc:104:34: error: ?.aster_info?.was not declared in this scope
/root/Downloads/AliSQL-master/sql/semisync_slave.cc:104:47: error: ?.i?.was not declared in this scope
int ReplSemiSyncSlave::slaveStop(Master_info *mi)
^
/root/Downloads/AliSQL-master/sql/semisync_slave.cc:105:1: error: expected ?.?.or ?.?.before ?.?.token
{
^
/root/Downloads/AliSQL-master/sql/semisync_slave.cc:113:35: error: ?.nt ReplSemiSyncSlave::resetSlave?.is not a static data member of ?.lass ReplSemiSyncSlave?
int ReplSemiSyncSlave::resetSlave(Master_info *mi)
^
/root/Downloads/AliSQL-master/sql/semisync_slave.cc:113:35: error: ?.aster_info?.was not declared in this scope
/root/Downloads/AliSQL-master/sql/semisync_slave.cc:113:48: error: ?.i?.was not declared in this scope
int ReplSemiSyncSlave::resetSlave(Master_info *mi)
^
/root/Downloads/AliSQL-master/sql/semisync_slave.cc:114:1: error: expected ?.?.or ?.?.before ?.?.token
{
^
/root/Downloads/AliSQL-master/sql/semisync_slave.cc:147:40: error: ?.nt ReplSemiSyncSlave::requestTransmit?.is not a static data member of ?.lass ReplSemiSyncSlav?
int ReplSemiSyncSlave::requestTransmit(Master_info *mi)
^
/root/Downloads/AliSQL-master/sql/semisync_slave.cc:147:40: error: ?.aster_info?.was not declared in this scope
/root/Downloads/AliSQL-master/sql/semisync_slave.cc:147:53: error: ?.i?.was not declared in this scope
int ReplSemiSyncSlave::requestTransmit(Master_info *mi)
^
/root/Downloads/AliSQL-master/sql/semisync_slave.cc:148:1: error: expected ?.?.or ?.?.before ?.?.token
{
^
make[2]: *** [libmysqld/CMakeFiles/sql_embedded.dir/__/sql/semisync_slave.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [libmysqld/CMakeFiles/sql_embedded.dir/all] Error 2
make: *** [all] Error 2

@lwcloud lwcloud changed the title 编译出错? 编译出错?semisync_slave.h:87:18: error: ?.aster_info?.has not been declared Feb 28, 2017
@fungo
Copy link
Collaborator

fungo commented Mar 13, 2017

请参考编译指导 alisql-compiler-guide

@fungo fungo closed this as completed Mar 13, 2017
xpchild pushed a commit that referenced this issue Jul 17, 2017
…ict_table_t object

Problem
================
The innodb will crash when master thread wants to evict an unused object.
The backtrace:
  ut_ad(dict_index_is_clust(index))
  row_merge_drop_indexes
  dict_table_remove_from_cache_low
  dict_make_room_in_cache ()
  srv_master_evict_from_table_cache ()
  srv_master_do_idle_tasks ()
  srv_master_thread (arg=0x0)
  start_thread (arg=0x2b21c8200700)
  clone ()

Solution
================
The wrong position of judgement logic code about variable 'drop_aborted' in function
dict_table_close() may be the root cause.
We simply move this piece of codes prior to the decrement of
table->n_ref_count, thus aborted index will be discard when this table
is being closed.
xpchild pushed a commit that referenced this issue Jul 17, 2017
This feature is ported from upstream 8.0.

As 8.0 introduces Data Dictionary which substitute metadata files
in server layer used in previous version(such as frm) , so there are
some subtle differences.
1. we store index visibility info in frm
2. we use the HA_SORT_ALLOWS_SAME flag, which was not stored in frm
   before, in frm to indicate HA_INVISIBLE_KEY, so that we don't need
   to expand frm format, and compatibility is held.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants